This repository has been archived by the owner on Oct 4, 2019. It is now read-only.
forked from ory/hydra
/
o_auth2_client.go
56 lines (40 loc) · 3.04 KB
/
o_auth2_client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* ORY Hydra - Cloud Native OAuth 2.0 and OpenID Connect Server
*
* Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. Keep in mind that this document reflects the latest branch, always. Support for versioned documentation is coming in the future.
*
* OpenAPI spec version: Latest
* Contact: hi@ory.am
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
package swagger
type OAuth2Client struct {
// Name is the human-readable string name of the client to be presented to the end-user during authorization.
ClientName string `json:"client_name,omitempty"`
// Secret is the client's secret. The secret will be included in the create request as cleartext, and then never again. The secret is stored using BCrypt so it is impossible to recover it. Tell your users that they need to write the secret down as it will not be made available again.
ClientSecret string `json:"client_secret,omitempty"`
// ClientURI is an URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion.
ClientUri string `json:"client_uri,omitempty"`
// Contacts is a array of strings representing ways to contact people responsible for this client, typically email addresses.
Contacts []string `json:"contacts,omitempty"`
// GrantTypes is an array of grant types the client is allowed to use.
GrantTypes []string `json:"grant_types,omitempty"`
// ID is the id for this client.
Id string `json:"id,omitempty"`
// LogoURI is an URL string that references a logo for the client.
LogoUri string `json:"logo_uri,omitempty"`
// Owner is a string identifying the owner of the OAuth 2.0 Client.
Owner string `json:"owner,omitempty"`
// PolicyURI is a URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data.
PolicyUri string `json:"policy_uri,omitempty"`
// Public is a boolean that identifies this client as public, meaning that it does not have a secret. It will disable the client_credentials grant type for this client if set.
Public bool `json:"public,omitempty"`
// RedirectURIs is an array of allowed redirect urls for the client, for example http://mydomain/oauth/callback .
RedirectUris []string `json:"redirect_uris,omitempty"`
// ResponseTypes is an array of the OAuth 2.0 response type strings that the client can use at the authorization endpoint.
ResponseTypes []string `json:"response_types,omitempty"`
// Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens.
Scope string `json:"scope,omitempty"`
// TermsOfServiceURI is a URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client.
TosUri string `json:"tos_uri,omitempty"`
}