mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-21 05:11:17 +00:00
6fa934880e
* Re-add example configuration for Crowd * Implement Crowd authentication * Fix: Some errors just mean there is no user * Document crowd provider * Vendor new dependencies * Reduce error messages: Check for config details
19 lines
287 B
Go
19 lines
287 B
Go
package crowd
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestGetCookieConfig(t *testing.T) {
|
|
tv := PrepVars(t)
|
|
c, err := New(tv.AppUsername, tv.AppPassword, tv.AppURL)
|
|
if err != nil {
|
|
t.Error(err)
|
|
}
|
|
|
|
ck, err := c.GetCookieConfig()
|
|
if err != nil {
|
|
t.Error(err)
|
|
}
|
|
t.Logf("Got: %+v\n", ck)
|
|
}
|