-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Identity Server 3 compatibility test #28
Comments
AppAuth only supports the
Relevant discussion: openid/AppAuth-iOS#98 So I think this can probably be fixed with configuring the IdentityServer client and changing the Flow. Possibly |
I'm also wondering if ID Server 3 is supported. Using ID server 3, I've got it redirecting back to the app , but getting
with the following in the logs
I have tried with Authorization Code and just now AuthorizationCodeWithProofKey flows. I noticed that when signing out on ID server 4 it sends the client id on revoke, and was wondering whether ID Server 3 could have additional quirks? With ID Server 4 it works fine. I'm very interested if you are able to get it working with ID Server 3. |
@sattaman are you testing on iOS or Android? |
@kadikraman iOS currently |
so here is the update after some tries. I changed the response type to "AuthorizationCode" on Id3 configuration and finally I can see the login page that provided by the Id3 after login button clicked. However, when I entered the username and password and clicked login, the first click does not do anything, I have to click on it second time and it showed the following error message: "There is an error determining which application you are signing into. Return to the application and try again". It looks like the Id3 does not recongize the returnUrl I passed over. I know this is not directly a issue with this module but any help would be appreciate. Here is my settings appAuth = new AppAuth({ also have the redirectUris : com.****:/oauthredirect in the Id3 configuration Let me know if I am doing anything wrong here. Thanks |
I've created a ID Server 3 demo deployment https://site20180207034230.azurewebsites.net/ and still getting the same error Where ID Server is configured as follows
Using
Where the redirect is Feel free to test against the above , I'll leave it up for the next couple of weeks. |
Check the IdentityServer logs to understand why you're getting the invalid client error. There must be some misconfiguration. |
@sattaman thanks so much for setting up the Azure website. I tried to run one of the IS3 demos locally before, but I'm not an I can reproduce your error on both iOS and Android and the error is happening when trying to exchange the code for a JWT. According to the spec,
Are the error logs you posted from above still valid?
|
after I swtich from AuthorizationCodeWithProofKey to AuthorizationCode in id3 configuration The invalid client error goes away. But now i am having issue return token to mobile app after signing in... |
These are the logs from Azure using the out the box set up
There is a client for using AuthorizationCode on the demo id server instance, with client id 'code' I've tried it and getting the same error with that too. Logs for that here: https://pastebin.com/nSCmCJPj |
Oh, interesting, so clearly it's not getting the client secret. Just looking at the IS4 example setup for the parent library and they have set
Is there a way to do the same on IS3 perhaps? |
Nice spot. I've found the following PR IdentityServer/IdentityServer3#3653 |
Looks like it never got merged 😢 It certainly makes sense now. We never implemented the auth request with client secrets, because IS4 and Google (the services we authenticated against) don't require them and you can't really hide secrets in a mobile app anyway as they have to be shipped with the bundle so it's not really "secret". The parent libraries do provide that option though, e.g. here so we could certainly wrap it. |
Also this IdentityServer/IdentityServer3#2688
Ok sounds good :) |
Hi All,
Thanks for guiding me in my previous post, I am able to configure it successfully and run this package on React Native. Here is the new issue I am facing
After I click the sign in button, the identity server login page pop up in webview, but it shows ""The client application is not known or is not authorized" so I copy to url and paste into the browser to see if all the query parameter are correct. Then I found that the "response type" is "code", once I switch to "token code", it works. But how can I do it in this module. I try to go through the document here but I could not find any way to change the response type. Any suggestion?
Thank you in advance.
The text was updated successfully, but these errors were encountered: