Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Validate credentials when performing a login #824

Merged
merged 1 commit into from
Nov 10, 2022

Conversation

tylerslaton
Copy link
Contributor

@tylerslaton tylerslaton commented Nov 1, 2022

Adding in a new function that validates the credentials against the specified registry. If the validation fails it will return an error and not add it to the Acorn credentials.

Issue #324

@tylerslaton tylerslaton force-pushed the validate-creds branch 2 times, most recently from 3015a91 to 74f6b2f Compare November 1, 2022 18:21
@tylerslaton tylerslaton marked this pull request as ready for review November 2, 2022 00:00
tylerslaton added a commit to tylerslaton/runtime that referenced this pull request Nov 2, 2022
Signed-off-by: tylerslaton <mtslaton1@gmail.com>
tylerslaton added a commit to tylerslaton/runtime that referenced this pull request Nov 2, 2022
Signed-off-by: tylerslaton <mtslaton1@gmail.com>
tylerslaton added a commit to tylerslaton/runtime that referenced this pull request Nov 2, 2022
Signed-off-by: tylerslaton <mtslaton1@gmail.com>
@tylerslaton
Copy link
Contributor Author

Working through some issues moving to server side where the existing tests are validating against registries that do not exist.

tylerslaton added a commit to tylerslaton/runtime that referenced this pull request Nov 3, 2022
Signed-off-by: tylerslaton <mtslaton1@gmail.com>
tylerslaton added a commit to tylerslaton/runtime that referenced this pull request Nov 3, 2022
Signed-off-by: tylerslaton <mtslaton1@gmail.com>
Signed-off-by: tylerslaton <mtslaton1@gmail.com>
@tylerslaton
Copy link
Contributor Author

Okay, got the tests passing again. Looks like there was an issue with the listing functionality not properly running.

@cjellick cjellick merged commit c1d702a into acorn-io:main Nov 10, 2022
@cjellick
Copy link
Member

@tylerslaton - just an async heads up: this is actually still client side pkg/client is called by pkg/cli, before the call goes to the server. To get this call server side, it should have landed in https://github.com/acorn-io/acorn/blob/main/pkg/server/registry/apps/strategy.go

No action needed on your part, I'm going to see if we can fix today as part of v0.4.1. Just wanted to let you know asyncronously for future reference (assuming you get a notification of this comment :-) )

@tylerslaton
Copy link
Contributor Author

@cjellick Ah, right on. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants