forked from openshift/osin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.go
50 lines (38 loc) · 884 Bytes
/
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
package osin
// Client is any struct type that has getters and setters for some
// required Client parameters.
type Client interface {
GetId() string
SetId(string)
GetSecret() string
SetSecret(string)
GetRedirectUri() string
SetRedirectUri(string)
}
// BasicClient is the default client type.
type BasicClient struct {
// Client id
Id string
// Client secrent
Secret string
// Base client uri
RedirectUri string
}
func (client *BasicClient) GetId() string {
return client.Id
}
func (client *BasicClient) SetId(id string) {
client.Id = id
}
func (client *BasicClient) GetSecret() string {
return client.Secret
}
func (client *BasicClient) SetSecret(secret string) {
client.Secret = secret
}
func (client *BasicClient) GetRedirectUri() string {
return client.RedirectUri
}
func (client *BasicClient) SetRedirectUri(uri string) {
client.RedirectUri = uri
}