fix examples and update usage
This commit is contained in:
parent
636d0db033
commit
33a38e9c07
4 changed files with 16 additions and 5 deletions
|
@ -82,7 +82,7 @@ func (s *publicKey) Key() interface{} {
|
|||
}
|
||||
|
||||
func NewStorage(issuer string) *storage {
|
||||
hostname := strings.Split(strings.Split(issuer, "://")[0], ":")[0]
|
||||
hostname := strings.Split(strings.Split(issuer, "://")[1], ":")[0]
|
||||
key, _ := rsa.GenerateKey(rand.Reader, 2048)
|
||||
return &storage{
|
||||
authRequests: make(map[string]*AuthRequest),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue