sources/oauth: allow writing to user in SourceConnection
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> #1888
This commit is contained in:
parent
a95779157d
commit
4c5537ddfe
|
@ -16,7 +16,6 @@ class UserOAuthSourceConnectionSerializer(SourceSerializer):
|
||||||
model = UserOAuthSourceConnection
|
model = UserOAuthSourceConnection
|
||||||
fields = ["pk", "user", "source", "identifier", "access_token"]
|
fields = ["pk", "user", "source", "identifier", "access_token"]
|
||||||
extra_kwargs = {
|
extra_kwargs = {
|
||||||
"user": {"read_only": True},
|
|
||||||
"access_token": {"write_only": True},
|
"access_token": {"write_only": True},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
18
schema.yml
18
schema.yml
|
@ -27952,8 +27952,8 @@ components:
|
||||||
maxLength: 200
|
maxLength: 200
|
||||||
audience:
|
audience:
|
||||||
type: string
|
type: string
|
||||||
description: Value of the audience restriction field of the assertion.
|
description: Value of the audience restriction field of the assertion. When
|
||||||
When left empty, no audience restriction will be added.
|
left empty, no audience restriction will be added.
|
||||||
issuer:
|
issuer:
|
||||||
type: string
|
type: string
|
||||||
minLength: 1
|
minLength: 1
|
||||||
|
@ -28252,6 +28252,8 @@ components:
|
||||||
type: object
|
type: object
|
||||||
description: OAuth Source Serializer
|
description: OAuth Source Serializer
|
||||||
properties:
|
properties:
|
||||||
|
user:
|
||||||
|
type: integer
|
||||||
source:
|
source:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
@ -29559,8 +29561,8 @@ components:
|
||||||
maxLength: 200
|
maxLength: 200
|
||||||
audience:
|
audience:
|
||||||
type: string
|
type: string
|
||||||
description: Value of the audience restriction field of the assertion.
|
description: Value of the audience restriction field of the assertion. When
|
||||||
When left empty, no audience restriction will be added.
|
left empty, no audience restriction will be added.
|
||||||
issuer:
|
issuer:
|
||||||
type: string
|
type: string
|
||||||
description: Also known as EntityID
|
description: Also known as EntityID
|
||||||
|
@ -29661,8 +29663,8 @@ components:
|
||||||
maxLength: 200
|
maxLength: 200
|
||||||
audience:
|
audience:
|
||||||
type: string
|
type: string
|
||||||
description: Value of the audience restriction field of the assertion.
|
description: Value of the audience restriction field of the assertion. When
|
||||||
When left empty, no audience restriction will be added.
|
left empty, no audience restriction will be added.
|
||||||
issuer:
|
issuer:
|
||||||
type: string
|
type: string
|
||||||
minLength: 1
|
minLength: 1
|
||||||
|
@ -30987,7 +30989,6 @@ components:
|
||||||
title: ID
|
title: ID
|
||||||
user:
|
user:
|
||||||
type: integer
|
type: integer
|
||||||
readOnly: true
|
|
||||||
source:
|
source:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
@ -31003,6 +31004,8 @@ components:
|
||||||
type: object
|
type: object
|
||||||
description: OAuth Source Serializer
|
description: OAuth Source Serializer
|
||||||
properties:
|
properties:
|
||||||
|
user:
|
||||||
|
type: integer
|
||||||
source:
|
source:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
@ -31017,6 +31020,7 @@ components:
|
||||||
required:
|
required:
|
||||||
- identifier
|
- identifier
|
||||||
- source
|
- source
|
||||||
|
- user
|
||||||
UserReputation:
|
UserReputation:
|
||||||
type: object
|
type: object
|
||||||
description: UserReputation Serializer
|
description: UserReputation Serializer
|
||||||
|
|
Reference in New Issue