Skip to content

Is it possible to append "code" in responseType as part of implicit flow? #346

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

Closed
PrasannaaSanthanam opened this issue Jun 4, 2018 · 4 comments

Comments

@PrasannaaSanthanam
Copy link

PrasannaaSanthanam commented Jun 4, 2018

Hi @manfredsteyer,

I would like to know if its possible to get auth code rather than auth token along with id_token during implicit flow.. as of now the response_type defaults to "token" and I do not see a way to append/override the responseType (with code) during implicitFlow.

I am trying to combine OpenID & oAuth (with code) as a hybrid flow, So that I can send the code to back channel for further api access. The back end would then exchange the code for the actual token for resource access.

thanks for the help.
Prasannaa

@PrasannaaSanthanam PrasannaaSanthanam changed the title Is it possible to pass "code" as part of implicit flow? Is it possible to append "code" in responseType as part of implicit flow? Jun 4, 2018
@zouabimourad
Copy link

zouabimourad commented Jun 30, 2018

It seems that responseType is not overridable even though it is present in AuthConfig

           if (this.oidc && this.requestAccessToken) {
                this.responseType = 'id_token token';
            } else if (this.oidc && !this.requestAccessToken) {
                this.responseType = 'id_token';
            } else {
                this.responseType = 'token';
            }

@FlorianSW
Copy link

See #397

@nisha2107
Copy link

Hi, was anyone able to solve this issue, as I am also facing the same issue while integrating ADFS with Angular 5.
Providing response_type = 'code'
Error: error=unsupported_response_type. The+authorization+server+does+not+support+obtaining+an+authorization+code+using+the+requested+'response_type'.+The+authorization+server+only+supports+'code'+as+the+response+type

@jeroenheijmans
Copy link
Collaborator

With the release of version 8 Code flow is supported.

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

5 participants