We are creating 8 native applications(IOS, Android, may be windows). All these native applications have back-end api built using ASP.NET Web Api . Now I am trying to build Single Sign On using IdentityServer3 (https://github.com/IdentityServer/IdentityServer3). My users data is saved in ASP.NET Identity 2. I just need to validate username/password(no external authentication). Now my confusion is
- How many scopes/claims do I need or I need no scopes/claims? The web api just need to know the user-id, user-roles and user-claims saved in ASP.NET Identity tables.
- What scopes should my clients(native apps) request from SSO server?
- Should they include id_token or access_token in Authorization header during sending a request to my back-end ASP.NET web-api?
Now my back-end ASP.NET web-api should include which scopes? I mean what should I put here,
app.UseIdentityServerBearerTokenAuthentication(new IdentityServerBearerTokenAuthenticationOptions { Authority = "https://localhost:44333/core", RequiredScopes = new[] { XXXXXX } });
Is https required for SSO server? and what is SigningCertificate? how is it related with https certificate?