diff options
author | 2018-10-22 20:49:10 -0700 | |
---|---|---|
committer | 2018-10-22 20:49:10 -0700 | |
commit | dc8668b9040ad99d30dd32ae7fe5b51b68ec8e99 (patch) | |
tree | 32c13a71804410838222139510a79fc84e93b88b /oauth2/profile.go | |
parent | f06a19814bde280277d7e7309d83a4ac538840f2 (diff) | |
download | v2-dc8668b9040ad99d30dd32ae7fe5b51b68ec8e99.tar.gz v2-dc8668b9040ad99d30dd32ae7fe5b51b68ec8e99.tar.zst v2-dc8668b9040ad99d30dd32ae7fe5b51b68ec8e99.zip |
Improve logging for OAuth2 callback
Diffstat (limited to 'oauth2/profile.go')
-rw-r--r-- | oauth2/profile.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/oauth2/profile.go b/oauth2/profile.go index b43f07c2..471b478d 100644 --- a/oauth2/profile.go +++ b/oauth2/profile.go @@ -4,9 +4,17 @@ package oauth2 // import "miniflux.app/oauth2" +import ( + "fmt" +) + // Profile is the OAuth2 user profile. type Profile struct { Key string ID string Username string } + +func (p Profile) String() string { + return fmt.Sprintf(`ID=%s ; Username=%s`, p.ID, p.Username) +} |