func (s *IdentityService) CreateOIDCAuthRequest(req services.OIDCAuthRequest, ttl time.Duration) error {
	if err := req.Check(); err != nil {
		return trace.Wrap(err)
	}
	data, err := json.Marshal(req)
	if err != nil {
		return trace.Wrap(err)
	}
	err = s.backend.CreateVal(authRequestsPath, req.StateToken, data, ttl)
	if err != nil {
		return trace.Wrap(err)
	}
	return nil
}
// CreateOIDCAuthRequest creates new auth request
CreateOIDCAuthRequest creates new auth request
// CreateOIDCAuthRequest creates new auth request
func (s *IdentityService) CreateOIDCAuthRequest(req services.OIDCAuthRequest, ttl time.Duration) error {
	if err := req.Check(); err != nil {
		return trace.Wrap(err)
	}
	data, err := json.Marshal(req)
	if err != nil {
		return trace.Wrap(err)
	}
	err = s.backend.CreateVal(authRequestsPath, req.StateToken, data, ttl)
	if err != nil {
		return trace.Wrap(err)
	}
	return nil
}
func ( s * IdentityService ) CreateOIDCAuthRequest ( req services . OIDCAuthRequest , ttl time . Duration ) error { if err := req . Check ( ) ; err != nil { return trace . Wrap ( err ) } data , err := json . Marshal ( req ) if err != nil { return trace . Wrap ( err ) } err = s . backend . CreateVal ( authRequestsPath , req . StateToken , data , ttl ) if err != nil { return trace . Wrap ( err ) } return nil }
CreateOIDCAuthRequest creates new auth request
CreateOIDCAuthRequest creates new auth request