profile.go 463 B

1234567891011121314151617181920
  1. // Copyright 2017 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. package oauth2 // import "miniflux.app/oauth2"
  5. import (
  6. "fmt"
  7. )
  8. // Profile is the OAuth2 user profile.
  9. type Profile struct {
  10. Key string
  11. ID string
  12. Username string
  13. }
  14. func (p Profile) String() string {
  15. return fmt.Sprintf(`Key=%s ; ID=%s ; Username=%s`, p.Key, p.ID, p.Username)
  16. }