Class: AuthService
Defined in: | src/service/auth.coffee |
Overview
Service to manage authorization and authentication with a HAPI instance.
Instance Method Summary
- - (void) constructor(hapilib) Constructor Create a new AuthService.
- - (void) authenticate(type, data, callback) Authenticate with a given type and data.
- - (void) authenticateClient(data, callback) Authenticate the client application.
- - (void) authenticateFacebook(data, callback) Authenticate the user using a Facebook signed request.
- - (void) authenticateCode(data, callback) Authenticate the user with a code received from HAPI.
- - (void) logout() Log out.
Constructor Details
- (void) constructor(hapilib)
Create a new AuthService.
Instance Method Details
- (void) authenticate(type, data, callback)
Authenticate with a given type and data.
- (void) authenticateClient(data, callback)
Authenticate the client application. This type of authentication does not require a logged-in user and will only allow public resources to be accessed.
- (void) authenticateFacebook(data, callback)
Authenticate the user using a Facebook signed request.
- (void) authenticateCode(data, callback)
Authenticate the user with a code received from HAPI.
- (void) logout()
Log out. Delegates to hapilib#logout.