-
Notifications
You must be signed in to change notification settings - Fork 14
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
Google Oauth 2.0 fail #37
Comments
@thaarrtt what's this screenshot? Are you using the example code: https://github.com/casdoor/casdoor-flutter-example or it's your own app? What's the mobile device? brand and version and OS version |
its from example repository and its generic android emulator with latest sdk |
A partial fix is available in #38 , the remaining is to work arround the google signin custom scheme limitation to trigger the callback. |
@heralight thanks for PR and 1.5.0 has been released: https://pub.dev/packages/casdoor_flutter_sdk/versions/1.5.0 How to fix the remaining part? |
@hsluoyz prefer to use https://pub.dev/packages/oidc directly, it work with casdoor like: final userManager = OidcUserManager.lazy(
discoveryDocumentUri: OidcUtils.getOpenIdConfigWellKnownUri(casdoorIssuer),
clientCredentials:
const OidcClientAuthentication.none(clientId: appClientId),
store: OidcDefaultStore(),
settings: OidcUserManagerSettings(
redirectUri: redirectUri,
extraAuthenticationParameters: { 'organizationName': 'myorg',
'appName': 'myapp',},
// the same redirectUri can be used as for post logout too.
// postLogoutRedirectUri: redirectUri,
scope: ['openid', 'profile', 'email'],
),
); best regards, |
@heralight can you make a PR? |
As I said, I don't use this casdoor-flutter-sdk anymore, just use https://pub.dev/packages/oidc directly as my precedent sample. |
from example repository
oauth blocked because need proper user-agent
The text was updated successfully, but these errors were encountered: