Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[httpjson] Render of auth.oauth2.scopes fails #3295

Closed
colin-stubbs opened this issue May 9, 2022 · 1 comment · Fixed by #3297
Closed

[httpjson] Render of auth.oauth2.scopes fails #3295

colin-stubbs opened this issue May 9, 2022 · 1 comment · Fixed by #3297
Labels
bug Something isn't working, use only for issues Integration:httpjson Custom API

Comments

@colin-stubbs
Copy link
Contributor

colin-stubbs commented May 9, 2022

Given this rendering template currently in use to generate auth.oauth2.scopes,

auth.oauth2.scopes:
{{#each oauth_scopes as |scope i|}}
  - {{scope}}
{{/each}}

And this input format definition in the manifest,

      - name: oauth_scopes
        type: yaml
        title: Oauth2 Scopes
        description: A list of scopes that will be requested during the oauth2 flow. It is optional for all providers.
        show_user: false
        multi: true
        required: false

YAML format text input is enforced in Kibana and via API request, e.g. the string has to be either "- scope_thing" or "['scope_thing']" to be accepted by the API

In all cases, regardless of input, the "compiled_stream" output will result in "auth.oauth2.scopes": null,

@elasticmachine
Copy link

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@jamiehynds jamiehynds added bug Something isn't working, use only for issues Integration:httpjson Custom API labels May 9, 2022
@andrewkroh andrewkroh changed the title Render of auth.oauth2.scopes fails for custom httpjson input [httpjson] Render of auth.oauth2.scopes fails May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, use only for issues Integration:httpjson Custom API
Projects
None yet
3 participants