diff --git a/linebot/v3/oauth/api/async_channel_access_token.py b/linebot/v3/oauth/api/async_channel_access_token.py index daf57058..944e0cdb 100644 --- a/linebot/v3/oauth/api/async_channel_access_token.py +++ b/linebot/v3/oauth/api/async_channel_access_token.py @@ -184,7 +184,7 @@ def gets_all_valid_channel_access_token_key_ids_with_http_info(self, client_asse ['application/json']) # noqa: E501 # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = { '200': "ChannelAccessTokenKeyIdsResponse", @@ -356,7 +356,7 @@ def issue_channel_token_with_http_info(self, grant_type : Annotated[Optional[Str _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = { '200': "IssueShortLivedChannelAccessTokenResponse", @@ -529,7 +529,7 @@ def issue_channel_token_by_jwt_with_http_info(self, grant_type : Annotated[Optio _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = { '200': "IssueChannelAccessTokenResponse", @@ -717,7 +717,7 @@ def issue_stateless_channel_token_with_http_info(self, grant_type : Annotated[St _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = { '200': "IssueStatelessChannelAccessTokenResponse", @@ -869,7 +869,7 @@ def revoke_channel_token_with_http_info(self, access_token : Annotated[Optional[ _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = {} @@ -1035,7 +1035,7 @@ def revoke_channel_token_by_jwt_with_http_info(self, client_id : Annotated[Optio _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = {} @@ -1189,7 +1189,7 @@ def verify_channel_token_with_http_info(self, access_token : Annotated[Optional[ _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = { '200': "VerifyChannelAccessTokenResponse", @@ -1338,7 +1338,7 @@ def verify_channel_token_by_jwt_with_http_info(self, access_token : Annotated[St ['application/json']) # noqa: E501 # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = { '200': "VerifyChannelAccessTokenResponse", diff --git a/linebot/v3/oauth/api/channel_access_token.py b/linebot/v3/oauth/api/channel_access_token.py index 8712d860..991b0d95 100644 --- a/linebot/v3/oauth/api/channel_access_token.py +++ b/linebot/v3/oauth/api/channel_access_token.py @@ -172,7 +172,7 @@ def gets_all_valid_channel_access_token_key_ids_with_http_info(self, client_asse ['application/json']) # noqa: E501 # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = { '200': "ChannelAccessTokenKeyIdsResponse", @@ -334,7 +334,7 @@ def issue_channel_token_with_http_info(self, grant_type : Annotated[Optional[Str _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = { '200': "IssueShortLivedChannelAccessTokenResponse", @@ -497,7 +497,7 @@ def issue_channel_token_by_jwt_with_http_info(self, grant_type : Annotated[Optio _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = { '200': "IssueChannelAccessTokenResponse", @@ -675,7 +675,7 @@ def issue_stateless_channel_token_with_http_info(self, grant_type : Annotated[St _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = { '200': "IssueStatelessChannelAccessTokenResponse", @@ -817,7 +817,7 @@ def revoke_channel_token_with_http_info(self, access_token : Annotated[Optional[ _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = {} @@ -973,7 +973,7 @@ def revoke_channel_token_by_jwt_with_http_info(self, client_id : Annotated[Optio _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = {} @@ -1117,7 +1117,7 @@ def verify_channel_token_with_http_info(self, access_token : Annotated[Optional[ _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = { '200': "VerifyChannelAccessTokenResponse", @@ -1256,7 +1256,7 @@ def verify_channel_token_by_jwt_with_http_info(self, access_token : Annotated[St ['application/json']) # noqa: E501 # authentication setting - _auth_settings = ['Bearer'] # noqa: E501 + _auth_settings = [] # noqa: E501 _response_types_map = { '200': "VerifyChannelAccessTokenResponse", diff --git a/linebot/v3/oauth/configuration.py b/linebot/v3/oauth/configuration.py index b8ccb805..ca69a745 100644 --- a/linebot/v3/oauth/configuration.py +++ b/linebot/v3/oauth/configuration.py @@ -54,7 +54,6 @@ class Configuration(object): :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. - :Example: """ _default = None @@ -355,13 +354,6 @@ def auth_settings(self): :return: The Auth Settings information dict. """ auth = {} - if self.access_token is not None: - auth['Bearer'] = { - 'type': 'bearer', - 'in': 'header', - 'key': 'Authorization', - 'value': 'Bearer ' + self.access_token - } return auth def to_debug_report(self): diff --git a/linebot/v3/oauth/docs/ChannelAccessToken.md b/linebot/v3/oauth/docs/ChannelAccessToken.md index d2f5ba6e..565e37b4 100644 --- a/linebot/v3/oauth/docs/ChannelAccessToken.md +++ b/linebot/v3/oauth/docs/ChannelAccessToken.md @@ -23,7 +23,6 @@ Gets all valid channel access token key IDs. ### Example -* Bearer Authentication (Bearer): ```python import time import os @@ -38,15 +37,6 @@ configuration = linebot.v3.oauth.Configuration( host = "https://api.line.me" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: Bearer -configuration = linebot.v3.oauth.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) # Enter a context with an instance of the API client with linebot.v3.oauth.ApiClient(configuration) as api_client: @@ -77,7 +67,7 @@ Name | Type | Description | Notes ### Authorization -[Bearer](../README.md#Bearer) +No authorization required ### HTTP request headers @@ -100,7 +90,6 @@ Issue short-lived channel access token ### Example -* Bearer Authentication (Bearer): ```python import time import os @@ -115,15 +104,6 @@ configuration = linebot.v3.oauth.Configuration( host = "https://api.line.me" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: Bearer -configuration = linebot.v3.oauth.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) # Enter a context with an instance of the API client with linebot.v3.oauth.ApiClient(configuration) as api_client: @@ -156,7 +136,7 @@ Name | Type | Description | Notes ### Authorization -[Bearer](../README.md#Bearer) +No authorization required ### HTTP request headers @@ -180,7 +160,6 @@ Issues a channel access token that allows you to specify a desired expiration da ### Example -* Bearer Authentication (Bearer): ```python import time import os @@ -195,15 +174,6 @@ configuration = linebot.v3.oauth.Configuration( host = "https://api.line.me" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: Bearer -configuration = linebot.v3.oauth.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) # Enter a context with an instance of the API client with linebot.v3.oauth.ApiClient(configuration) as api_client: @@ -236,7 +206,7 @@ Name | Type | Description | Notes ### Authorization -[Bearer](../README.md#Bearer) +No authorization required ### HTTP request headers @@ -259,7 +229,6 @@ Issues a new stateless channel access token, which doesn't have max active token ### Example -* Bearer Authentication (Bearer): ```python import time import os @@ -274,15 +243,6 @@ configuration = linebot.v3.oauth.Configuration( host = "https://api.line.me" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: Bearer -configuration = linebot.v3.oauth.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) # Enter a context with an instance of the API client with linebot.v3.oauth.ApiClient(configuration) as api_client: @@ -319,7 +279,7 @@ Name | Type | Description | Notes ### Authorization -[Bearer](../README.md#Bearer) +No authorization required ### HTTP request headers @@ -342,7 +302,6 @@ Revoke short-lived or long-lived channel access token ### Example -* Bearer Authentication (Bearer): ```python import time import os @@ -356,15 +315,6 @@ configuration = linebot.v3.oauth.Configuration( host = "https://api.line.me" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: Bearer -configuration = linebot.v3.oauth.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) # Enter a context with an instance of the API client with linebot.v3.oauth.ApiClient(configuration) as api_client: @@ -391,7 +341,7 @@ void (empty response body) ### Authorization -[Bearer](../README.md#Bearer) +No authorization required ### HTTP request headers @@ -414,7 +364,6 @@ Revoke channel access token v2.1 ### Example -* Bearer Authentication (Bearer): ```python import time import os @@ -428,15 +377,6 @@ configuration = linebot.v3.oauth.Configuration( host = "https://api.line.me" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: Bearer -configuration = linebot.v3.oauth.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) # Enter a context with an instance of the API client with linebot.v3.oauth.ApiClient(configuration) as api_client: @@ -467,7 +407,7 @@ void (empty response body) ### Authorization -[Bearer](../README.md#Bearer) +No authorization required ### HTTP request headers @@ -490,7 +430,6 @@ Verify the validity of short-lived and long-lived channel access tokens ### Example -* Bearer Authentication (Bearer): ```python import time import os @@ -505,15 +444,6 @@ configuration = linebot.v3.oauth.Configuration( host = "https://api.line.me" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: Bearer -configuration = linebot.v3.oauth.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) # Enter a context with an instance of the API client with linebot.v3.oauth.ApiClient(configuration) as api_client: @@ -542,7 +472,7 @@ Name | Type | Description | Notes ### Authorization -[Bearer](../README.md#Bearer) +No authorization required ### HTTP request headers @@ -565,7 +495,6 @@ You can verify whether a Channel access token with a user-specified expiration ( ### Example -* Bearer Authentication (Bearer): ```python import time import os @@ -580,15 +509,6 @@ configuration = linebot.v3.oauth.Configuration( host = "https://api.line.me" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: Bearer -configuration = linebot.v3.oauth.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) # Enter a context with an instance of the API client with linebot.v3.oauth.ApiClient(configuration) as api_client: @@ -617,7 +537,7 @@ Name | Type | Description | Notes ### Authorization -[Bearer](../README.md#Bearer) +No authorization required ### HTTP request headers