Skip to content
  • Sara Arjona's avatar
    MDL-71119 core_badges: Initialise scopes param in backpack-connect.php · 2d308243
    Sara Arjona authored
    The scopes parameter should be passed when creating the OAuth2 badges
    client. As it is an optional parameter, when it's empty, it will
    be initilised with the supported scopes for the backpack issuer.
    
    It will happen, for instance, when a call is done to oauth2callback.php
    because, as defined in RFC6749, OAuth2 authorization response only
    supports code and state.
    2d308243