locked
Azure AD V2 SPA group.readwrite.all RRS feed

  • Question

  • Hi I have taken SPA sample  https://docs.microsoft.com/en-us/azure/active-directory/develop/guidedsetups/active-directory-javascriptspa

    it works fine when I use user.read permission every thing works as expected .

    now when I  use group.readwrite.all I get below error.

    note: I have validated request has token as response type and I have given admin consent for this.   

    unsupported_response_type"

    The provided value for the input parameter 'response_type' is not valid. Expected values are the following: 'code', 'token', 'id_token', 'none'.

    Thursday, November 23, 2017 7:41 AM

All replies

  • When you get this error, you should also be presented with a CorrelationId and Timestamp. Could you share the same?
    Also provide the code snippet where you are changing the scope and response_type, or the full request URI including the response_type and scope parameters.
    -------------------------------------------------------------------------------------------------------------
    Do click on "Mark as Answer" on the post that helps you and vote it as helpful, this can be beneficial to other community members. 
    Thursday, November 23, 2017 3:53 PM
  • these are two lines I have changaed

    // Graph API endpoint to show user profile
    var graphApiEndpoint = "https://graph.microsoft.com/v1.0/groups";
    // Graph API scope used to obtain the access token to read user profile
    var graphAPIScopes = ["https://graph.microsoft.com/group.read.all"];
    //var graphAPIScopes = ["https://graph.microsoft.com/user.read"];

    {"cache":[{"key":{"uri":"localhost#error=unsupported_response_type&error_description=the+provided+value+for+the+input+parameter+%27response_type%27+is+not+valid.+expected+values+are+the+following:+%27code%27,+%27token%27,+%27id_token%27,+%27none%27.&state=cf221ac8-bada-4df1-b9f2-852dffd908c7","inheritance":"none","locale":"en-US"},"maxAge":100800000000,"telemetry":"1;00c21dd9-ab50-2523-c21d-6cad72e93feb;UNKN:100;0.01"}],"telemetry":"1;00c21dd9-ab50-2523-c21d-6cad72e93feb;UNKN:100;0.01"}

    Friday, November 24, 2017 9:03 AM