Class: Telnyx::Resources::WellKnown
- Inherits:
-
Object
- Object
- Telnyx::Resources::WellKnown
- Defined in:
- lib/telnyx/resources/well_known.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ WellKnown
constructor
private
A new instance of WellKnown.
-
#retrieve_authorization_server_metadata(request_options: {}) ⇒ Telnyx::Models::WellKnownRetrieveAuthorizationServerMetadataResponse
OAuth 2.0 Authorization Server Metadata (RFC 8414).
-
#retrieve_protected_resource_metadata(request_options: {}) ⇒ Telnyx::Models::WellKnownRetrieveProtectedResourceMetadataResponse
OAuth 2.0 Protected Resource Metadata for resource discovery.
Constructor Details
#initialize(client:) ⇒ WellKnown
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of WellKnown.
49 50 51 |
# File 'lib/telnyx/resources/well_known.rb', line 49 def initialize(client:) @client = client end |
Instance Method Details
#retrieve_authorization_server_metadata(request_options: {}) ⇒ Telnyx::Models::WellKnownRetrieveAuthorizationServerMetadataResponse
OAuth 2.0 Authorization Server Metadata (RFC 8414)
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/telnyx/resources/well_known.rb', line 15 def (params = {}) path = @client.base_url_overridden? ? ".well-known/oauth-authorization-server" : "https://api.telnyx.com/.well-known/oauth-authorization-server" @client.request( method: :get, path: path, model: Telnyx::Models::WellKnownRetrieveAuthorizationServerMetadataResponse, options: params[:request_options] ) end |
#retrieve_protected_resource_metadata(request_options: {}) ⇒ Telnyx::Models::WellKnownRetrieveProtectedResourceMetadataResponse
OAuth 2.0 Protected Resource Metadata for resource discovery
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/telnyx/resources/well_known.rb', line 35 def (params = {}) path = @client.base_url_overridden? ? ".well-known/oauth-protected-resource" : "https://api.telnyx.com/.well-known/oauth-protected-resource" @client.request( method: :get, path: path, model: Telnyx::Models::WellKnownRetrieveProtectedResourceMetadataResponse, options: params[:request_options] ) end |