Class: Zitadel::Client::Auth::OAuthAuthenticatorBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/zitadel/client/auth/authenticator.rb

Overview

Abstract builder class for constructing OAuth authenticator instances.

This builder provides common configuration options such as the OpenId instance and authentication scopes.

Instance Method Summary collapse

Instance Method Details

#scopes(*scopes) ⇒ self

Sets the authentication scopes for the OAuth authenticator.

Parameters:

  • scopes (Array<String>)

    a variable number of scope strings.

Returns:

  • (self)

    the builder instance to allow for method chaining.



73
74
75
76
# File 'lib/zitadel/client/auth/authenticator.rb', line 73

def scopes(*scopes)
  @auth_scopes = Set.new(scopes)
  self
end