Commit 92d27aa4 authored by Matija Obreza's avatar Matija Obreza
Browse files

Updated OAuth client editor

- description
- refresh_token grant
parent ad249b17
......@@ -2027,6 +2027,7 @@
"grantTypes": {
"implicit": "Implicit",
"password": "Password",
"refresh_token": "Refresh token",
"client_credentials": "Client credentials",
"authorization_code": "Authorization code"
},
......
......@@ -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 = [
......
......@@ -178,6 +178,7 @@
"grantTypes": {
"implicit": "Implicit",
"password": "Password",
"refresh_token": "Refresh token",
"client_credentials": "Client credentials",
"authorization_code": "Authorization code"
},
......
......@@ -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 }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment