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
6e6d4fee
Commit
6e6d4fee
authored
Sep 10, 2017
by
Andreas Åkre Solberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add scopes and respone_types to user input
parent
d931e21c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
src/components/ServerConfigInput.jsx
src/components/ServerConfigInput.jsx
+16
-1
No files found.
src/components/ServerConfigInput.jsx
View file @
6e6d4fee
...
@@ -28,7 +28,9 @@ class Component extends PureComponent {
...
@@ -28,7 +28,9 @@ class Component extends PureComponent {
this
.
state
=
{
this
.
state
=
{
clientId
:
"
6233aedf-f08a-4112-9a1b-f33c3cd9b396
"
,
clientId
:
"
6233aedf-f08a-4112-9a1b-f33c3cd9b396
"
,
clientSecret
:
""
,
clientSecret
:
""
,
redirectURL
:
currentURL
redirectURL
:
currentURL
,
scopes
:
""
,
response_type
:
"
token
"
}
}
}
}
...
@@ -107,6 +109,19 @@ class Component extends PureComponent {
...
@@ -107,6 +109,19 @@ class Component extends PureComponent {
<
FormControl
type
=
"text"
bsSize
=
"large"
value
=
{
this
.
state
.
clientSecret
}
onChange
=
{
this
.
updateFieldHandler
.
bind
(
this
)(
"
clientSecret
"
)
}
/>
<
FormControl
type
=
"text"
bsSize
=
"large"
value
=
{
this
.
state
.
clientSecret
}
onChange
=
{
this
.
updateFieldHandler
.
bind
(
this
)(
"
clientSecret
"
)
}
/>
</
FormGroup
>
</
FormGroup
>
<
h4
>
Scopes
</
h4
>
<
FormGroup
>
<
FormControl
type
=
"text"
bsSize
=
"large"
value
=
{
this
.
state
.
scopes
}
onChange
=
{
this
.
updateFieldHandler
.
bind
(
this
)(
"
scopes
"
)
}
/>
</
FormGroup
>
<
FormGroup
controlId
=
"response_type"
>
<
ControlLabel
>
Response Type
</
ControlLabel
>
<
FormControl
componentClass
=
"select"
placeholder
=
"select"
value
=
{
this
.
state
.
response_type
}
onChange
=
{
this
.
updateFieldHandler
.
bind
(
this
)(
"
response_type
"
)
}
>
<
option
value
=
"token"
>
OAuth Implicit Grant (token)
</
option
>
<
option
value
=
"id_token token"
>
OpenID Connect Implicit Flow (id_token token)
</
option
>
</
FormControl
>
</
FormGroup
>
<
h4
>
Redirect URI
</
h4
>
<
h4
>
Redirect URI
</
h4
>
<
p
>
When you configure your client, please register the following redirect uri:
</
p
>
<
p
>
When you configure your client, please register the following redirect uri:
</
p
>
<
p
><
code
>
{
this
.
state
.
redirectURL
}
</
code
></
p
>
<
p
><
code
>
{
this
.
state
.
redirectURL
}
</
code
></
p
>
...
...
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