mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-21 22:57:59 -04:00
o2k: removed partial support for oauth2 (#5260)
* o2k: removed partial support for oauth2 * Fix fixtures Co-authored-by: Filipe Freire <livrofubia@gmail.com>
This commit is contained in:
@@ -564,9 +564,6 @@ Supported types are:
|
||||
|
||||
- `oauth2`
|
||||
- NOT YET IMPLEMENTED!
|
||||
- except for the implicit flow
|
||||
- implemented using the Kong plugin `openid-connect`
|
||||
- extended by: `x-kong-security-openid-connect`
|
||||
- `openIdConnect`
|
||||
- implemented using the Kong plugin `openid-connect`
|
||||
- extended by: `x-kong-security-openid-connect`
|
||||
@@ -635,7 +632,7 @@ The `request-validator` plugin has three [parameters](https://docs.konghq.com/hu
|
||||
- `config.parameter_schema`
|
||||
- `config.allowed_content_types`
|
||||
|
||||
If any of these are *not* specified in the `x-kong-plugin-request-validator.config` object in the OpenAPI spec, they will be generated if possible, otherwise will be configured to allow all body/parameter/content types.
|
||||
If any of these are _not_ specified in the `x-kong-plugin-request-validator.config` object in the OpenAPI spec, they will be generated if possible, otherwise will be configured to allow all body/parameter/content types.
|
||||
|
||||
```yaml
|
||||
paths:
|
||||
|
||||
@@ -13,13 +13,6 @@
|
||||
"strip_path": false,
|
||||
"tags": ["OAS3_import", "OAS3file_security.yaml"],
|
||||
"name": "Security_Example-only-oath2-get",
|
||||
"plugins": [
|
||||
{
|
||||
"config": { "auth_methods": ["client_credentials"] },
|
||||
"name": "openid-connect",
|
||||
"tags": ["OAS3_import", "OAS3file_security.yaml"]
|
||||
}
|
||||
],
|
||||
"paths": ["/only/oath2$"]
|
||||
},
|
||||
{
|
||||
@@ -41,13 +34,6 @@
|
||||
"strip_path": false,
|
||||
"tags": ["OAS3_import", "OAS3file_security.yaml"],
|
||||
"name": "Security_Example-and-based-auth-get",
|
||||
"plugins": [
|
||||
{
|
||||
"config": { "auth_methods": ["client_credentials"] },
|
||||
"name": "openid-connect",
|
||||
"tags": ["OAS3_import", "OAS3file_security.yaml"]
|
||||
}
|
||||
],
|
||||
"paths": ["/and/based/auth$"]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -71,13 +71,6 @@ export const generateOpenIdConnectSecurityPlugin = (scheme: OpenAPIV3.OpenIdSecu
|
||||
return openIdConnectPlugin;
|
||||
};
|
||||
|
||||
export const generateOAuth2SecurityPlugin = (): OpenIDConnectPlugin => ({
|
||||
config: {
|
||||
auth_methods: ['client_credentials'],
|
||||
},
|
||||
name: 'openid-connect',
|
||||
});
|
||||
|
||||
export function generateSecurityPlugin(
|
||||
scheme: OA3SecurityScheme | null,
|
||||
args: string[],
|
||||
@@ -99,10 +92,6 @@ export function generateSecurityPlugin(
|
||||
plugin = generateOpenIdConnectSecurityPlugin(scheme as OpenAPIV3.OpenIdSecurityScheme, args);
|
||||
break;
|
||||
|
||||
case 'oauth2':
|
||||
plugin = generateOAuth2SecurityPlugin();
|
||||
break;
|
||||
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user