mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
This PR starts the OIDC implementation for the API V2 including the Implicit and Code Flow. Co-authored-by: Livio Spring <[email protected]> Co-authored-by: Tim Möhlmann <[email protected]> Co-authored-by: Stefan Benz <[email protected]>
18 lines
263 B
Go
18 lines
263 B
Go
package query
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func Test_cleanStaticQueries(t *testing.T) {
|
|
query := `select
|
|
foo,
|
|
bar
|
|
from table;`
|
|
want := "select foo, bar from table;"
|
|
cleanStaticQueries(&query)
|
|
assert.Equal(t, want, query)
|
|
}
|