Skip to content
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

Issue signing in on Android device. #80

Open
ghost opened this issue Jan 19, 2019 · 0 comments
Open

Issue signing in on Android device. #80

ghost opened this issue Jan 19, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 19, 2019

Hi,

I have used this library for signing in to my Identity Server and it has been working fine. Suddenly i cant login now. I am using the same implementation for my ios device and it works fine.

This is my code:

export class AppClient {
    private signInProvider = new IDCOauthProvider('authorize', {
        clientId: 'ionic.app',
        appScope: ['openid profile pictures'],
        redirectUri: 'http://192.168.1.48:8100',
        responseType: 'id_token token',
        post_logout_redirect_uri: 'http://192.168.1.48:8100',
        nonce: IdGenerator.newId()
    });

    constructor(private oauth: OauthCordova, private storageService: StorageService) { }

    public signInViaApp(): Promise<any> {
        return this.oauth.logInVia(this.signInProvider).then((s: any) => {
            return this.storageService.setAccess_Token(s.access_token) <-- // never reaches this line. 
        }).catch((e) => console.error(JSON.stringify(e)));
    }
}

The app never reaches the line shown above, and i cant seem to find out what the problem is. As stated above, the app works fine on ios devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants