Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PopulatePublicKey (0.16 sec)

  1. internal/config/identity/openid/jwt.go

    	pk.pkMap[keyID] = key
    }
    
    func (pk *publicKeys) get(kid string) interface{} {
    	pk.RLock()
    	defer pk.RUnlock()
    	return pk.pkMap[kid]
    }
    
    // PopulatePublicKey - populates a new publickey from the JWKS URL.
    func (r *Config) PopulatePublicKey(arn arn.ARN) error {
    	pCfg := r.arnProviderCfgsMap[arn]
    	if pCfg.JWKS.URL == nil || pCfg.JWKS.URL.String() == "" {
    		return nil
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 02:46:36 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. internal/config/identity/openid/openid.go

    			// defined.
    			if _, ok := c.arnProviderCfgsMap[DummyRoleARN]; ok {
    				return c, errSingleProvider
    			}
    		}
    
    		c.arnProviderCfgsMap[arnKey] = &p
    		c.ProviderCfgs[cfgName] = &p
    
    		if err = c.PopulatePublicKey(arnKey); err != nil {
    			return c, err
    		}
    	}
    
    	c.Enabled = true
    
    	return c, nil
    }
    
    // ErrProviderConfigNotFound - represents a non-existing provider error.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 20:16:44 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top