[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/oauthserver/ -> PhabricatorOAuthServer.php (summary)

Implements core OAuth 2.0 Server logic.

File Size: 262 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 12 functions

  getUser()
  setUser()
  getClient()
  setClient()
  userHasAuthorizedClient()
  authorizeClient()
  generateAuthorizationCode()
  generateAccessToken()
  validateAuthorizationCode()
  validateAccessToken()
  validateRedirectURI()
  validateSecondaryRedirectURI()

Functions
Functions that are not part of a class:

getUser()   X-Ref
No description

setUser(PhabricatorUser $user)   X-Ref
No description

getClient()   X-Ref
No description

setClient(PhabricatorOAuthServerClient $client)   X-Ref
No description

userHasAuthorizedClient(array $scope)   X-Ref

return: tuple <bool hasAuthorized, ClientAuthorization or null>

authorizeClient(array $scope)   X-Ref


generateAuthorizationCode(PhutilURI $redirect_uri)   X-Ref


generateAccessToken()   X-Ref


validateAuthorizationCode(PhabricatorOAuthServerAuthorizationCode $test_code,PhabricatorOAuthServerAuthorizationCode $valid_code)   X-Ref


validateAccessToken(PhabricatorOAuthServerAccessToken $token,$required_scope)   X-Ref


validateRedirectURI(PhutilURI $uri)   X-Ref
See http://tools.ietf.org/html/draft-ietf-oauth-v2-23#section-3.1.2
for details on what makes a given redirect URI "valid".


validateSecondaryRedirectURI(PhutilURI $secondary_uri,PhutilURI $primary_uri)   X-Ref
If there's a URI specified in an OAuth request, it must be validated in
its own right. Further, it must have the same domain and (at least) the
same query parameters as the primary URI.




Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1