1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-07-12 22:41:07 +02:00

Store account credentials

This commit is contained in:
Ben Toogood
2020-05-13 13:48:25 +01:00
parent 3fac7d79ab
commit 47c1cb433e
2 changed files with 11 additions and 1 deletions

View File

@ -250,8 +250,8 @@ func (s *service) registerAuthAccount() error {
if err != nil {
return err
}
s.Options().Auth.Init(auth.ClientToken(token))
s.Options().Auth.Init(auth.ClientToken(token), auth.Credentials(acc.ID, acc.Secret))
logger.Infof("Auth [%v] Authenticated as %v", s.Options().Auth, name)
return nil
}