Debian Codegraph @

apps/internal/oauth/fake/fake.go

raw symbols SCIP
1 // Copyright (c) Microsoft Corporation.
2 // Licensed under the MIT license.
3
4 package fakescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/
5
6 import (
7 "contextscip-go gomod github.com/golang/go/src go1.18 context/"
8 "errorsscip-go gomod github.com/golang/go/src go1.18 errors/"
9 "fmtscip-go gomod github.com/golang/go/src go1.18 fmt/"
10
11 "github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/"
12 "github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/"
13 "github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrustscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust`/"
14 "github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust/defsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust/defs`/"
15 )
16
17 // ResolveEndpoints is a fake implementation of the oauth.resolveEndpointer interface.
18 type ResolveEndpointsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/ResolveEndpoints# struct {
19 // Set this to true to have all APIs return an error.
20 Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/ResolveEndpoints#Err. bool
21
22 // fake result to return
23 Endpointsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/ResolveEndpoints#Endpoints. authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.Endpointsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/Endpoints#
24 }
25
26 func (f ResolveEndpointsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/ResolveEndpoints#) ResolveEndpointsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/ResolveEndpoints#ResolveEndpoints().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, authorityInfo authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.Infoscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/Info#, userPrincipalName string) (authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.Endpointsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/Endpoints#, error) {
27 if f.Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/ResolveEndpoints#Err. {
28 return authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.Endpointsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/Endpoints#{}, errorsscip-go gomod github.com/golang/go/src go1.18 errors/.Newscip-go gomod github.com/golang/go/src go1.18 errors/New().("error")
29 }
30 return f.Endpointsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/ResolveEndpoints#Endpoints., nil
31 }
32
33 // AccessTokens is a fake implementation of the oauth.accessTokens interface.
34 type AccessTokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens# struct {
35 // Set this to true to have all APIs return an error.
36 Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Err. bool
37
38 // Result is for use with FromDeviceCodeResult. On each call it returns
39 // the next item in this slice. They must be either an error or nil.
40 Resultscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Result. []error
41 Nextscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Next. int
42
43 // fake result to return
44 AccessTokenscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#AccessToken. accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#
45
46 // fake result to return
47 DeviceCodescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#DeviceCode. accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.DeviceCodeResultscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/DeviceCodeResult#
48
49 // FromRefreshTokenCallback is an optional callback invoked by FromRefreshToken
50 FromRefreshTokenCallbackscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#FromRefreshTokenCallback. func(appType accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.AppTypescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/AppType#, authParams authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.AuthParamsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/AuthParams#, cc *accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.Credentialscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/Credential#, refreshToken string)
51
52 // ValidateAssertion is an optional callback for validating an assertion generated by confidential.Client
53 ValidateAssertionscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#ValidateAssertion. func(string)
54 }
55
56 func (f *AccessTokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#) FromUsernamePasswordscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#FromUsernamePassword().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, authParameters authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.AuthParamsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/AuthParams#) (accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#, error) {
57 if f.Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Err. {
58 return accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#{}, fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.18 fmt/Errorf().("error")
59 }
60 return f.AccessTokenscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#AccessToken., nil
61 }
62 func (f *AccessTokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#) FromAuthCodescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#FromAuthCode().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, req accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.AuthCodeRequestscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/AuthCodeRequest#) (accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#, error) {
63 if f.Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Err. {
64 return accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#{}, fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.18 fmt/Errorf().("error")
65 }
66 return f.AccessTokenscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#AccessToken., nil
67 }
68 func (f *AccessTokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#) FromRefreshTokenscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#FromRefreshToken().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, appType accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.AppTypescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/AppType#, authParams authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.AuthParamsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/AuthParams#, cc *accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.Credentialscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/Credential#, refreshToken string) (accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#, error) {
69 if f.FromRefreshTokenCallbackscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#FromRefreshTokenCallback. != nil {
70 f.FromRefreshTokenCallbackscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#FromRefreshTokenCallback.(appType, authParams, cc, refreshToken)
71 }
72 if f.Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Err. {
73 return accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#{}, fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.18 fmt/Errorf().("error")
74 }
75 return f.AccessTokenscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#AccessToken., nil
76 }
77 func (f *AccessTokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#) FromClientSecretscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#FromClientSecret().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, authParameters authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.AuthParamsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/AuthParams#, clientSecret string) (accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#, error) {
78 if f.Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Err. {
79 return accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#{}, fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.18 fmt/Errorf().("error")
80 }
81 return f.AccessTokenscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#AccessToken., nil
82 }
83 func (f *AccessTokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#) FromAssertionscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#FromAssertion().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, authParameters authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.AuthParamsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/AuthParams#, assertion string) (accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#, error) {
84 if f.Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Err. {
85 return accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#{}, fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.18 fmt/Errorf().("error")
86 }
87 if f.ValidateAssertionscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#ValidateAssertion. != nil {
88 f.ValidateAssertionscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#ValidateAssertion.(assertion)
89 }
90 return f.AccessTokenscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#AccessToken., nil
91 }
92 func (f *AccessTokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#) FromUserAssertionClientSecretscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#FromUserAssertionClientSecret().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, authParameters authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.AuthParamsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/AuthParams#, userAssertion, clientSecret string) (accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#, error) {
93 if f.Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Err. {
94 return accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#{}, fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.18 fmt/Errorf().("error")
95 }
96 return f.AccessTokenscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#AccessToken., nil
97 }
98 func (f *AccessTokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#) FromUserAssertionClientCertificatescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#FromUserAssertionClientCertificate().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, authParameters authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.AuthParamsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/AuthParams#, userAssertion, assertion string) (accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#, error) {
99 if f.Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Err. {
100 return accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#{}, fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.18 fmt/Errorf().("error")
101 }
102 return f.AccessTokenscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#AccessToken., nil
103 }
104 func (f *AccessTokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#) DeviceCodeResultscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#DeviceCodeResult().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, authParameters authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.AuthParamsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/AuthParams#) (accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.DeviceCodeResultscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/DeviceCodeResult#, error) {
105 if f.Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Err. {
106 return accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.DeviceCodeResultscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/DeviceCodeResult#{}, fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.18 fmt/Errorf().("error")
107 }
108 return f.DeviceCodescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#DeviceCode., nil
109 }
110 func (f *AccessTokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#) FromDeviceCodeResultscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#FromDeviceCodeResult().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, authParameters authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.AuthParamsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/AuthParams#, deviceCodeResult accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.DeviceCodeResultscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/DeviceCodeResult#) (accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#, error) {
111 if f.Nextscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Next. < len(f.Resultscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Result.) {
112 defer func() { f.Nextscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Next.++ }()
113 v := f.Resultscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Result.[f.Nextscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Next.]
114 if v == nil {
115 return f.AccessTokenscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#AccessToken., nil
116 }
117 return accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#{}, v
118 }
119 panic("AccessTokens.FromDeviceCodeResult() asked for more return values than provided")
120 }
121 func (f *AccessTokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#) FromSamlGrantscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#FromSamlGrant().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, authParameters authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.AuthParamsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/AuthParams#, samlGrant wstrustscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust`/.SamlTokenInfoscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust`/SamlTokenInfo#) (accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#, error) {
122 if f.Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#Err. {
123 return accesstokensscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/.TokenResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens`/TokenResponse#{}, fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.18 fmt/Errorf().("error")
124 }
125 return f.AccessTokenscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/AccessTokens#AccessToken., nil
126 }
127
128 // Authority is a fake implementation of the oauth.fetchAuthority interface.
129 type Authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/Authority# struct {
130 // Set this to true to have all APIs return an error.
131 Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/Authority#Err. bool
132
133 // The fake UserRealm to return from the UserRealm() API.
134 Realmscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/Authority#Realm. authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.UserRealmscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/UserRealm#
135
136 // fake result to return
137 InstanceRespscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/Authority#InstanceResp. authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.InstanceDiscoveryResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/InstanceDiscoveryResponse#
138 }
139
140 func (f Authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/Authority#) UserRealmscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/Authority#UserRealm().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, params authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.AuthParamsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/AuthParams#) (authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.UserRealmscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/UserRealm#, error) {
141 if f.Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/Authority#Err. {
142 return authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.UserRealmscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/UserRealm#{}, errorsscip-go gomod github.com/golang/go/src go1.18 errors/.Newscip-go gomod github.com/golang/go/src go1.18 errors/New().("error")
143 }
144 return f.Realmscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/Authority#Realm., nil
145 }
146
147 func (f Authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/Authority#) AADInstanceDiscoveryscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/Authority#AADInstanceDiscovery().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, info authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.Infoscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/Info#) (authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.InstanceDiscoveryResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/InstanceDiscoveryResponse#, error) {
148 if f.Errscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/Authority#Err. {
149 return authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.InstanceDiscoveryResponsescip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/InstanceDiscoveryResponse#{}, errorsscip-go gomod github.com/golang/go/src go1.18 errors/.Newscip-go gomod github.com/golang/go/src go1.18 errors/New().("error")
150 }
151 return f.InstanceRespscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/Authority#InstanceResp., nil
152 }
153
154 // WSTrust is a fake implementation of the oauth.fetchWSTrust interface.
155 type WSTrustscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust# struct {
156 // Set these to true to have their respective APIs return an error.
157 GetMexErrscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust#GetMexErr., GetSAMLTokenInfoErrscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust#GetSAMLTokenInfoErr. bool
158
159 // fake result to return
160 MexDocumentscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust#MexDocument. defsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust/defs`/.MexDocumentscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust/defs`/MexDocument#
161
162 // fake result to return
163 SamlTokenInfoscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust#SamlTokenInfo. wstrustscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust`/.SamlTokenInfoscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust`/SamlTokenInfo#
164 }
165
166 func (f WSTrustscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust#) Mexscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust#Mex().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, federationMetadataURL string) (defsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust/defs`/.MexDocumentscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust/defs`/MexDocument#, error) {
167 if f.GetMexErrscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust#GetMexErr. {
168 return defsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust/defs`/.MexDocumentscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust/defs`/MexDocument#{}, errorsscip-go gomod github.com/golang/go/src go1.18 errors/.Newscip-go gomod github.com/golang/go/src go1.18 errors/New().("error")
169 }
170 return f.MexDocumentscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust#MexDocument., nil
171 }
172
173 func (f WSTrustscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust#) SAMLTokenInfoscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust#SAMLTokenInfo().(ctx contextscip-go gomod github.com/golang/go/src go1.18 context/.Contextscip-go gomod github.com/golang/go/src go1.18 context/Context#, authParameters authorityscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/.AuthParamsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority`/AuthParams#, cloudAudienceURN string, endpoint defsscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust/defs`/.Endpointscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust/defs`/Endpoint#) (wstrustscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust`/.SamlTokenInfoscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust`/SamlTokenInfo#, error) {
174 if f.GetSAMLTokenInfoErrscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust#GetSAMLTokenInfoErr. {
175 return wstrustscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust`/.SamlTokenInfoscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust`/SamlTokenInfo#{}, errorsscip-go gomod github.com/golang/go/src go1.18 errors/.Newscip-go gomod github.com/golang/go/src go1.18 errors/New().("error")
176 }
177 return f.SamlTokenInfoscip-go gomod github.com/AzureAD/microsoft-authentication-library-for-go . `github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/fake`/WSTrust#SamlTokenInfo., nil
178 }