Create IdP for Native App
You can use SiX IDaaS & IAM to create an "Identity Provider(IdP)" for your "Native mobile apps".
Create IdP
For the IdP used for native mobile app, the basic setup(Identity application/OAuth client association) is very close to the setup for SPA, so please refer to Create IdP for SPA for additional infomation.
Steps to create IdP for Native apps
1. Create an Identity application
Login the SiX IDaaS & IAM console.
Navigating to menu: "Authentication->Create Identity Application(IdP)" to create the Identity application for the native app.
2. Create one public OAuth client and associate it with Identity application
Login the SiX IDaaS & IAM console.
Navigating to menu: "Authorization->Create Oauth Client" to create the OAuth client and bind this client to the "Identity Application" create in the last step.
TIP
Please be noted, for the native app, one public OAuth client should be used.
3. Use the OAuth client and IdP config in the app.
Your can use the community OAuth client SDK e.g. AppAuth to embed the IdP and the authenticaton flow into your apps.
The AppAuth links:
sample config for AppAuth
{
"client_id": "six-iot-sdk-android",
"redirect_uri": "com.six.iot:/oauth2redirect",
"end_session_redirect_uri": "com.six.iot:/oauth2redirect",
"authorization_scope": "openid profile",
"authorization_endpoint_uri": "https://abc123.app.shuhenglianchang.com/oauth2/authorize",
"token_endpoint_uri": "https://abc123.app.shuhenglianchang.com/oauth2/token",
"end_session_endpoint": "https://abc123.shuhenglianchang.com/connect/logout",
"user_info_endpoint_uri": "https://abc123.app.shuhenglianchang.com/userinfo",
"https_required": true
}
or you can use the SDK from SiX IDaaS & IAM:
TIP
If you can't access the repo, please contact us via the contact info on Contact Us