File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ func (p OidcProviderType) String() string {
2929 return [... ]string {"GitHub" , "Azure" , "GenericOidc" }[p ]
3030}
3131
32+ type responseConsole struct {
33+ AccessToken string `json:"access_token"`
34+ Username string `json:"username"`
35+ }
36+
3237func OidcProviderTypeFromString (providerType string ) (OidcProviderType , error ) {
3338 if providerType == "" {
3439 return 0 , nil
@@ -141,11 +146,12 @@ func (otc *OidcTokenExchangeCommand) Run() (err error) {
141146 }
142147 * otc .response , err = servicesManager .ExchangeOidcToken (otc .getOidcTokenParams ())
143148
144- // For testing
145- log .Debug ("printing repose to console" )
146- fmt .Printf ("Response: %+v\n " , otc .response )
147- log .Output ("Response: %+v\n " , otc .response )
148-
149+ // Populate responseConsole and print to console
150+ response := responseConsole {
151+ AccessToken : otc .response .AccessToken ,
152+ Username : otc .response .Username ,
153+ }
154+ log .Output (response )
149155 return
150156}
151157
You can’t perform that action at this time.
0 commit comments