Commits

Anonymous committed b7150d1

extension's grant_type can now be an https url

  • Participants
  • Parent commits 3879d3f

Comments (0)

Files changed (1)

lib/OAuth2/OAuth2.php

    * NB: For extensibility, the grant type can be a URI
    * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.5
    */
-  const GRANT_TYPE_REGEXP = '#^(authorization_code|token|password|client_credentials|refresh_token|http://.*)$#';
+  const GRANT_TYPE_REGEXP = '#^(authorization_code|token|password|client_credentials|refresh_token|https?://.*)$#';
 
   /**
    * @}