Skip to content

Add support for user origins#92

Merged
ctlong merged 1 commit intocloudfoundry:mainfrom
silvestre:add-user-origin
Jan 17, 2023
Merged

Add support for user origins#92
ctlong merged 1 commit intocloudfoundry:mainfrom
silvestre:add-user-origin

Conversation

@silvestre
Copy link
Copy Markdown
Member

Adds support to specify the user origin that will be used when using
cf auth.

Co-authored-by: Gareth Evans [email protected]

Copy link
Copy Markdown
Member

@ctlong ctlong left a comment

Choose a reason for hiding this comment

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

Just a few minor questions and concerns, otherwise LGTM.

Also, could you please link me somewhere where I could see what this origin flag adds? Why do y'all want to add it?

Adds support to specify the user origin that will be used when using
`cf auth`.

Co-authored-by: Gareth Evans <[email protected]>
@silvestre
Copy link
Copy Markdown
Member Author

Also, could you please link me somewhere where I could see what this origin flag adds? Why do y'all want to add it?

We want to be able to re-use our ASATS (App-Autoscaler acceptance test suite) internally at SAP. However, at SAP the default identity provider is SAP ID service. This means users created by cf create-user (e.g. created with cf-test-helpers) will be created in the platform UAA, but trying to login via cf auth will lookup users in SAP ID service which does not know users created in some platform UAA.

So, to be able to run the ASATS internally, we need to be able to target the correct identity provider (uaa) in the cf auth step using the --origin flag.

I hope this specific reason is good enough to get this change in, as in the end we just add the ability to support a feature that is already in CF also in tests.

Copy link
Copy Markdown
Member

@ctlong ctlong left a comment

Choose a reason for hiding this comment

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

LGTM

@ctlong ctlong merged commit 1704246 into cloudfoundry:main Jan 17, 2023
ctlong added a commit to cloudfoundry/cf-acceptance-tests that referenced this pull request Mar 25, 2023
Due to [changes in cf-test-helpers](cloudfoundry/cf-test-helpers#92),
we need to update our interface and interface implementation to include
some new methods.

As no one's asking for multiple origin support in CATs, I didn't
actually make it available via the integration_config. That's a trivial
change if we want to add it in the future.
ctlong added a commit to cloudfoundry/cf-acceptance-tests that referenced this pull request Mar 28, 2023
Due to [changes in cf-test-helpers](cloudfoundry/cf-test-helpers#92),
we need to update our interface and interface implementation to include
some new methods.

As no one's asking for multiple origin support in CATs, I didn't
actually make it available via the integration_config. That's a trivial
change if we want to add it in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants