minor auth refactor, some tidy-up
This commit is contained in:
parent
75534da702
commit
21b7a3926b
3 changed files with 63 additions and 45 deletions
|
|
@ -5,7 +5,6 @@ import (
|
|||
"os"
|
||||
|
||||
"github.com/pelletier/go-toml/v2"
|
||||
"golang.org/x/oauth2"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
@ -19,7 +18,6 @@ type (
|
|||
Host string `toml:"host" comment:"Address to host OAuth2 redirect flow"`
|
||||
RedirectUri string `toml:"redirect_uri" comment:"URI to use in Google OAuth2 flow"`
|
||||
Google GoogleConfig `toml:"google"`
|
||||
Token *oauth2.Token `toml:"token" comment:"This section is filled in automatically on a successful authentication flow."`
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue