File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ <h2>Basic Example</h2>
68
68
69
69
< pre > < code > < xmp > < body ng-app ="app ">
70
70
< oauth
71
- site ="<oauth-server-uri> "
72
- client-id ="<client-id> "
73
- redirect-uri ="<redirect-uri> "
74
- profile-uri ="<profile-uri> "
75
- scope ="<scope> ">
71
+ site ="OAUTH_SERVER_URI_HERE "
72
+ client-id ="CLIENT_ID_HERE "
73
+ redirect-uri ="REDIRECT_URI_HERE "
74
+ profile-uri ="PROFILE_URI_HERE "
75
+ scope ="SCOPE_HERE ">
76
76
</ oauth >
77
77
78
78
< script > angular . module ( 'app' , [ 'oauth-ng' ] ) ; </ script >
@@ -88,11 +88,10 @@ <h2>What does it do?</h2>
88
88
It renders a Login link that redirects you to the authorization page. When authorized and
89
89
redirected back to your app, the directive takes the access token from the fragment,
90
90
saves it in the < a href ="https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Storage#sessionStorage " target ="_blank "> SessionStorage</ a >
91
- and add it to all HTTP requests made in AngularJS.
91
+ and sets the Authorization header to all HTTP requests made with AngularJS.
92
92
</ p >
93
93
94
- < pre > < code > < xmp > // example header
95
- Authorization:Bearer 9e5c6bf5da8b10223babcb2f6776af5d2a05b3c7988be008eb956b290018464a</ xmp > </ code > </ pre >
94
+ < pre > < code > < xmp > Authorization:Bearer 9e5c6bf5da8b10223babcb2f6776af5d2a05b3c7988be008eb956b290018464a</ xmp > </ code > </ pre >
96
95
97
96
</ div >
98
97
</ section >
You can’t perform that action at this time.
0 commit comments