Skip to content

Does Authorization Code Flow work with loadDiscoveryDocumentAndLogin(); #661

Closed
@thxmike

Description

@thxmike

Describe the bug
I recently had a requirement to move over to using Authorization Code Flow.
So I used the documentation located here
https://manfredsteyer.github.io/angular-oauth2-oidc/docs/additional-documentation/code-flow-+-pcke.html
However, I do not have an explicit login button, so I have the user automatically redirected to the identity login screen. So I use this.oauthService.loadDiscoveryDocumentAndLogin(); instead of this.oauthService.loadDiscoveryDocumentAndTryLogin(); This works great for implicit flow. However, it appears, when I make the change to the responseType, it does not appear to be using the correct flow when it calls this.oauthService.loadDiscoveryDocumentAndLogin(). I see the call for this.initImplicitFlow();
Any suggestions on how to get this to work with Authorization Code Flow without an explicit button for logging in?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugFor tagging faulty or unexpected behavior.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions