Mapping roles in Jit Provisioning WSO2 IS - wso2

I'm using Google Federated Authenticator as IDP and i have problem with Jit provisioning.
After successful login account is created in User Store witch i choose, but created user doesn't have role that i set in claim configuration.
Logs from Identity Server:
http://pastebin.com/7Rd7mrV2
How to configure IDP to set a role to accounts created with Jit?

Related

Is it possible to use AWS Cognito to configure a SAML/OIDC relationship for SP or IDP initiated SSO with Cognito acting as the IDP?

Using Auth0 as an example of what I want to achieve, it is possible to create an Auth0 application and configure a SAML trust relationship to a service provider by downloading Auth0's Identity Provider Metadata from a Auth0 SAML2 Web App and supplying that to the service provider, and also uploading the Service Provider metadata to Auth0. Supplying some other configuration options such as application callback URL to Auth0 then allows federation to be achieved into the test service provider via SP initiated SSO.
I would like to understand if it is possible to build such a relationship with AWS Cognito using either SAML or OIDC, where Cognito would be acting as the Identity Provider. There seems to be a lot of documentation available providing instructions on how to use SAML to create a relationship to a third-party identity provider for a user pool, but I'm struggling to find any documentation or options within the console to configure SSO to a test service provider, for example no reference to Cognito Identity Provider metadata. The assumption that I am making is that Cognito is a service only for authorisation with your own applications (such as user login) and does not support SSO into other services in the way that I describe, and that if you wanted to use Cognito as a Identity Provider then I would have to connect my user pools to a service such as Auth0 to then build out the SSO relationship. Am I correct in this assumption? and if not, please help me to understand where in the documentation/console I should be looking.
I'm also aware that AWS SSO exists and that I could potentially link a Cognito user pool to that, however the user pool will be made up of clients, and my assumption is that AWS SSO serves to specifically support (internal/affiliate) employee access to AWS services and resources, and should not be used as a way to enable SSO to another service for customers.

wso2 Identity Server 5.7.0 Service Provider how set User role?

WSO2 Identity Server have service provider.
I have multiple service provider and multiple user role.
I want:
Role1 access and use Service Provider1.
Role2 access and use Service Provider2.
Role3 access and use Service Provider3.
How can config service provider for role management and role access management.
I hope you want a specific user role to access the specific SP. In that case, you can use adaptive authentication[1]. In each Service provider, you have to write an adaptive script to check whether the user has specific roles or not. There is a sample template for role-based authentication scenario[2]
[1]https://docs.wso2.com/display/IS570/Adaptive+Authentication
[2]https://docs.wso2.com/display/IS570/Configuring+Role-Based+Adaptive+Authentication

Handling multiple IdPs in wso2

How to achieve below Scenario:
I have multiple IDP such as APM, Predix, etc. Every IDP has its own user management such as a create user, groups, etc.
tenant 1 - APM
tenant 2 - Predix
Is there any configuration in WSO2 base on tenant dependant they will be giving a response such as Tenant 1 in request automatically wso2 connect to APM and giving endpoint information?
Doc - 1, guides the steps to configure federated identity provider to WSO2 IS. You can create different service providers and select the required IdP for each service provider. Steps to configure federated IdP to a service provider can be found in [2], under section "Click here for details on how to configure local and outbound authentication"
Edit: Identity Provider can be created in WSO2 IS to represent the external IdP. We can create service providers (based on the requirement, it could be created in relevant tenants) select federated authentication as "Authentication Type" and select the relevant IdP from drop down menu.Refer the image below:
1 https://docs.wso2.com/display/IS570/Configuring+Federated+Authentication
[2] https://docs.wso2.com/display/IS570/Adding+and+Configuring+a+Service+Provider

Session revocation for AWS Cognito Federated Identities

I'm using developer identity provider in conjunction with AWS Federated Identities.
Now I'm working on password change use case and unable to find how I can revoke all of user's active sessions.
It's essential to revoke all of current sessions when user changes password.
How it's possible?

Wso2 Identity server - Restrict Inbound Authentication of service provider based on role permission

I have created a tenant 'A' in wso2 IS and added my ldap user store in it. In the tenant 'A', I have configured a 'test' service provider with oauth2 as inbound authentication. As of now, I am successful with authenticating all the user in store with oauth2 service provider configuration.
But I could not find any configuration to restrict user from authentication against the service provider 'A'.
I have searched a lot but could not find a documentation for it. Need help in sorting this issue.
Whether we need to map our service provider role and local role somewhere?
This feature is not currently supported by WSO2 Identity Server. We will add this to future releases. Users permission does not check for authentication rather service provider's role is used for this purpose.
This could be achieved with the support of extension points which totally depends on the use case and grant type.