Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Website
Commits
92d27aa4
Commit
92d27aa4
authored
Jan 28, 2019
by
Matija Obreza
Browse files
Updated OAuth client editor
- description - refresh_token grant
parent
ad249b17
Changes
4
Hide whitespace changes
Inline
Side-by-side
locales/en/translations.json
View file @
92d27aa4
...
...
@@ -2027,6 +2027,7 @@
"grantTypes"
:
{
"implicit"
:
"Implicit"
,
"password"
:
"Password"
,
"refresh_token"
:
"Refresh token"
,
"client_credentials"
:
"Client credentials"
,
"authorization_code"
:
"Authorization code"
},
...
...
src/model/oauth/OAuthClient.ts
View file @
92d27aa4
...
...
@@ -41,7 +41,7 @@ class OAuthClient {
public
static
AVAILABLE_GRANT_TYPES
=
[
'
implicit
'
,
'
password
'
,
'
client_credentials
'
,
'
authorization_code
'
,
'
implicit
'
,
'
password
'
,
'
refresh_token
'
,
'
client_credentials
'
,
'
authorization_code
'
,
];
public
static
AVAILABLE_SCOPES
=
[
...
...
src/user/translations.json
View file @
92d27aa4
...
...
@@ -178,6 +178,7 @@
"grantTypes"
:
{
"implicit"
:
"Implicit"
,
"password"
:
"Password"
,
"refresh_token"
:
"Refresh token"
,
"client_credentials"
:
"Client credentials"
,
"authorization_code"
:
"Authorization code"
},
...
...
src/user/ui/admin/c/OAuthClientForm.tsx
View file @
92d27aa4
...
...
@@ -51,6 +51,13 @@ class UserForm extends React.Component<any, any> {
label
=
{
t
(
`user.common.oAuth.clientTitle`
)
}
validate
=
{
[
Validators
.
required
]
}
/>
<
Field
name
=
{
`description`
}
component
=
{
TextField
}
type
=
"text"
multiline
label
=
{
t
(
`user.common.oAuth.description`
)
}
/>
<
Field
name
=
{
`accessTokenValidity`
}
component
=
{
TextField
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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