(ai credentials.AuthInfo)
| 48 | } |
| 49 | |
| 50 | func getSecurityLevel(ai credentials.AuthInfo) credentials.SecurityLevel { |
| 51 | if c, ok := ai.(interface { |
| 52 | GetCommonAuthInfo() credentials.CommonAuthInfo |
| 53 | }); ok { |
| 54 | return c.GetCommonAuthInfo().SecurityLevel |
| 55 | } |
| 56 | return credentials.InvalidSecurityLevel |
| 57 | } |
| 58 | |
| 59 | // TestInsecureCreds tests the use of insecure creds on the server and client |
| 60 | // side, and verifies that expect security level and auth info are returned. |
no test coverage detected