1
0
mirror of https://github.com/smallstep/cli.git synced 2025-08-09 03:22:43 +03:00

Rename randutil methods.

This commit is contained in:
Mariano Cano
2018-07-19 15:28:31 -07:00
parent 38b40b83cb
commit c78db17870
6 changed files with 34 additions and 55 deletions

View File

@@ -282,12 +282,12 @@ type oauth struct {
}
func newOauth(provider, clientID, clientSecret, authzEp, tokenEp, scope, loginHint string) (*oauth, error) {
state, err := randutil.GenerateRandomRestrictedString(32)
state, err := randutil.Alphanumeric(32)
if err != nil {
return nil, err
}
challenge, err := randutil.GenerateRandomRestrictedString(64)
challenge, err := randutil.Alphanumeric(64)
if err != nil {
return nil, err
}