Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
oauth-play
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ASM
oauth-play
Commits
8deb979c
Commit
8deb979c
authored
Sep 10, 2017
by
Andreas Åkre Solberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for variable name, client_id
parent
87a44aba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/utils/API.js
src/utils/API.js
+7
-7
No files found.
src/utils/API.js
View file @
8deb979c
...
...
@@ -84,7 +84,7 @@ const API = {
// console.error("About to authentication", JSON.stringify(config, undefined, 3))
const
jsoconfig
=
{
providerID
:
"
oauthPlay
"
,
client_id
:
config
.
client
I
d
,
client_id
:
config
.
client
_i
d
,
redirect_uri
:
config
.
redirectURL
,
authorization
:
config
.
authorization_endpoint
// scopes: { request: ["userinfo"]}
...
...
@@ -118,7 +118,7 @@ const API = {
var
state
=
getState
()
const
jsoconfig
=
{
providerID
:
"
oauthPlay
"
,
client_id
:
state
.
serverConfig
.
client
I
d
,
client_id
:
state
.
serverConfig
.
client
_i
d
,
redirect_uri
:
state
.
serverConfig
.
redirectURL
,
authorization
:
state
.
serverConfig
.
authorization_endpoint
// scopes: { request: ["userinfo"]}
...
...
@@ -134,22 +134,22 @@ const API = {
return
(
dispatch
,
getState
)
=>
{
var
state
=
getState
()
if
(
!
state
||
!
state
.
serverConfig
||
!
state
.
serverConfig
.
client
I
d
)
{
//
console.error("CANNOT DO CALLBACK BECAUSE CLIENDIT is missing...", state)
if
(
!
state
||
!
state
.
serverConfig
||
!
state
.
serverConfig
.
client
_i
d
)
{
console
.
error
(
"
CANNOT DO CALLBACK BECAUSE CLIENDIT is missing...
"
,
state
)
return
}
// console.error(". STATE STATE STATE ", state)
const
jsoconfig
=
{
providerID
:
"
oauthPlay
"
,
client_id
:
state
.
serverConfig
.
client
I
d
,
client_id
:
state
.
serverConfig
.
client
_i
d
,
redirect_uri
:
state
.
serverConfig
.
redirectURL
,
authorization
:
state
.
serverConfig
.
authorization_endpoint
// scopes: { request: ["userinfo"]}
}
//
console.error(". Initialising oauth callback", jsoconfig)
console
.
error
(
"
. Initialising oauth callback
"
,
jsoconfig
)
appJSO
=
new
jso
(
jsoconfig
)
appJSO
.
callback
(
undefined
,
(
token
)
=>
{
//
console.error(" ====) (===== Got token, ayay", token)
console
.
error
(
"
====) (===== Got token, ayay
"
,
token
)
dispatch
(
actions
.
tokens
.
save
(
token
))
})
}
...
...
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