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

FS-927: add mtcl cmd for uploadbom API #46

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

Alva8756
Copy link
Contributor

@Alva8756 Alva8756 commented Sep 18, 2023

This PR add mtcl cmd for uploadbom API

Tested with sandbox server service <--> local bomservice <---> mctl client

@Alva8756 Alva8756 force-pushed the bom_client branch 5 times, most recently from dbe93de to fa8dce6 Compare September 19, 2023 17:48
)
}

token, err := auth.AccessToken(ctx, model.BomsServiceAPI, cfg, reauth)
Copy link
Contributor

Choose a reason for hiding this comment

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

This code looks fine, but there is some setup we'll have to do to get BOMService to get things to authenticate properly, unless we're using the same Okta groups and stuff for BOMService as we do for ConditionOrc (and that would probably be fine).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing it out.

I am not familiar with okta groups. Currently I found oidc client id 0oaa8kto5lZYascqP5d7, does it matches a group in okta? Can you help provide me a link to the okta configuration that I can learn and play around? In the future we may need to have a separate group for bom service.

Thanks!

cmd/create/bomupload.go Show resolved Hide resolved
@Alva8756 Alva8756 merged commit 929cc67 into metal-toolbox:main Sep 20, 2023
6 checks passed
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.

3 participants