mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
remove client credentials grant_type
This commit is contained in:
parent
5a7119759a
commit
87829ea339
@ -0,0 +1,20 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.11.11 on 2018-07-25 21:24
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('main', '0044_v330_add_inventory_update_inventory'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='oauth2application',
|
||||||
|
name='authorization_grant_type',
|
||||||
|
field=models.CharField(choices=[(b'authorization-code', 'Authorization code'), (b'implicit', 'Implicit'), (b'password', 'Resource owner password-based')], help_text='The Grant type the user must use for acquire tokens for this application.', max_length=32),
|
||||||
|
),
|
||||||
|
]
|
@ -39,12 +39,10 @@ class OAuth2Application(AbstractApplication):
|
|||||||
GRANT_AUTHORIZATION_CODE = "authorization-code"
|
GRANT_AUTHORIZATION_CODE = "authorization-code"
|
||||||
GRANT_IMPLICIT = "implicit"
|
GRANT_IMPLICIT = "implicit"
|
||||||
GRANT_PASSWORD = "password"
|
GRANT_PASSWORD = "password"
|
||||||
GRANT_CLIENT_CREDENTIALS = "client-credentials"
|
|
||||||
GRANT_TYPES = (
|
GRANT_TYPES = (
|
||||||
(GRANT_AUTHORIZATION_CODE, _("Authorization code")),
|
(GRANT_AUTHORIZATION_CODE, _("Authorization code")),
|
||||||
(GRANT_IMPLICIT, _("Implicit")),
|
(GRANT_IMPLICIT, _("Implicit")),
|
||||||
(GRANT_PASSWORD, _("Resource owner password-based")),
|
(GRANT_PASSWORD, _("Resource owner password-based")),
|
||||||
(GRANT_CLIENT_CREDENTIALS, _("Client credentials")),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
description = models.TextField(
|
description = models.TextField(
|
||||||
|
Loading…
Reference in New Issue
Block a user