Skip to content

Conversation

brosenberg42
Copy link
Member

@brosenberg42 brosenberg42 commented Nov 30, 2023

Copy link
Member

@jrobble jrobble left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @brosenberg42)

a discussion (no related file):
As discussed, I think adding your script to this doc would help job consumers understand what they need to do on their end.

I think it's fine to include in a breakout section in the doc and mention what you mentioned to me about how it also validates users, but that's not important to what we're trying test by using the script. I would add it to a new "Test callback authentication" section under the section you added.



docs/docs/OpenID-Connect-Guide.md line 127 at r1 (raw file):

    - "Client authentication" must be enabled.
    - "Standard flow" must be enabled.
    - "Service accounts roles" must be enabled.

It may be worth mentioning that this is only necessary when supporting callbacks due to how the WFM needs to request a token.

Copy link
Member

@jrobble jrobble left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 5 files at r2, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @brosenberg42)


docs/docs/OpenID-Connect-Guide.md line 216 at r2 (raw file):

- Assign the role created in step 2.

4\. Run jobs with the `CALLBACK_USE_OIDC` or `TIES_DB_USE_OIDC` job properties set.

Say "set to true" for clarity.


docs/docs/OpenID-Connect-Guide.md line 224 at r2 (raw file):

The Flask-pyoidc package requires you to configure it to authenticate Web users

This sounds like we're saying that the user of the script needs to do something to configure it. For clarity, let's say:

Note that the script configures the Flask-pyoidc package to authenticate Web users, as required by the package, but we are only testing the authentication of REST clients.

@jrobble
Copy link
Member

jrobble commented Dec 6, 2023

docs/docs/OpenID-Connect-Guide.md line 225 at r2 (raw file):

`OIDC_CLIENT_ID`, and `OIDC_CLIENT_SECRET` environment variables. The `Flask-pyoidc` package
requires you to configure it to authenticate Web users, but we are only testing the authentication
of REST clients.

Please mention that once the script is running, a user can submit a job via the Workflow Manager Swagger page with the following fields to test callbacks:

  "callbackMethod": "POST",
  "callbackURL": "http://localhost:5000/api",
  "jobProperties": {
      "CALLBACK_USE_OIDC" : "true"
  },

I think it's important to tell the user this next step.

Copy link
Member Author

@brosenberg42 brosenberg42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 5 files reviewed, 3 unresolved discussions (waiting on @jrobble)


docs/docs/OpenID-Connect-Guide.md line 216 at r2 (raw file):

Previously, jrobble (Jeff Robble) wrote…

Say "set to true" for clarity.

Done.


docs/docs/OpenID-Connect-Guide.md line 224 at r2 (raw file):

Previously, jrobble (Jeff Robble) wrote…

The Flask-pyoidc package requires you to configure it to authenticate Web users

This sounds like we're saying that the user of the script needs to do something to configure it. For clarity, let's say:

Note that the script configures the Flask-pyoidc package to authenticate Web users, as required by the package, but we are only testing the authentication of REST clients.

Done.


docs/docs/OpenID-Connect-Guide.md line 225 at r2 (raw file):

Previously, jrobble (Jeff Robble) wrote…

Please mention that once the script is running, a user can submit a job via the Workflow Manager Swagger page with the following fields to test callbacks:

  "callbackMethod": "POST",
  "callbackURL": "http://localhost:5000/api",
  "jobProperties": {
      "CALLBACK_USE_OIDC" : "true"
  },

I think it's important to tell the user this next step.

Done.

Copy link
Member

@jrobble jrobble left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 5 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @brosenberg42)

@brosenberg42 brosenberg42 merged commit da6ed09 into develop Dec 7, 2023
@brosenberg42 brosenberg42 deleted the feat/oidc-callback branch December 7, 2023 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants