aboutsummaryrefslogtreecommitdiffhomepage
path: root/oauth2
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-10-22 20:49:10 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-10-22 20:49:10 -0700
commitdc8668b9040ad99d30dd32ae7fe5b51b68ec8e99 (patch)
tree32c13a71804410838222139510a79fc84e93b88b /oauth2
parentf06a19814bde280277d7e7309d83a4ac538840f2 (diff)
Improve logging for OAuth2 callback
Diffstat (limited to 'oauth2')
-rw-r--r--oauth2/profile.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/oauth2/profile.go b/oauth2/profile.go
index b43f07c..471b478 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)
+}