Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
1db1463d
Commit
1db1463d
authored
Oct 03, 2014
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve comments for ``identityProvider``
parent
ffa3ec10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
identity.coffee
h/static/scripts/identity.coffee
+10
-12
No files found.
h/static/scripts/identity.coffee
View file @
1db1463d
...
@@ -3,19 +3,20 @@
...
@@ -3,19 +3,20 @@
# @name identityProvider
# @name identityProvider
# @property {function} checkAuthentication A function to check for an
# @property {function} checkAuthentication A function to check for an
# authenticated user.
It is expected to return the promise of an authorization
# authenticated user.
This function should return an authorization certificate,
#
grant if the user has authorized signing in to the requesting application.
#
or a promise of the same, if the user has authorized signing in to the
#
The function
arguments are injected.
#
application. Its
arguments are injected.
#
#
# @property {function} forgetAuthentication A function to forget the current
# @property {function} forgetAuthentication A function to forget the current
# authentication. The return value, if any, will be resolved as a promise
# authentication. The return value, if any, will be resolved as a promise
# before the identity service fires logout callbacks. Th
e identity provider
# before the identity service fires logout callbacks. Th
is function should
#
should ensure any sessions are cleared. The function
arguments are injected.
#
ensure any active session is invalidated. Its
arguments are injected.
#
#
# @property {function} requestAuthentication A function to request that the
# @property {function} requestAuthentication A function to request that the
# the user begin authenticating. It is expected to return the promise of an
# the user begin authenticating. This function should start a flow that
# authorization grant once the user has authenticated and authorized signing
# authenticates the user before asking the user grant authorization to the
# in to the requesting application. The function arguments are injected.
# application and then returning an authorization certificate or a promise
# of the same. Its arguments are injected.
#
#
# @description
# @description
# The `identityProvider` is used to configure functions that fulfill
# The `identityProvider` is used to configure functions that fulfill
...
@@ -25,10 +26,7 @@
...
@@ -25,10 +26,7 @@
# {@link h.identity:identity identity} service.
# {@link h.identity:identity identity} service.
#
#
# An application wishing to export an identity provider should override all
# An application wishing to export an identity provider should override all
# of the public methods of this provider. The all are expected to return a
# of the public methods of this provider.
# promise of an authorization grant that may be the null value or an object.
# If it is an object, it is considered a valid grant if it contains the keys
# ``userid`` and ``certificate``.
###
###
identityProvider = ->
identityProvider = ->
checkAuthentication: ['$q', ($q) ->
checkAuthentication: ['$q', ($q) ->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment