Commit 1b312eea authored by ale's avatar ale
Browse files

Check that the OIDC token is valid

parent e6e060f2
Pipeline #446 passed with stages
in 1 minute and 20 seconds
......@@ -88,6 +88,11 @@ func TestOIDC_Application(t *testing.T) {
http.Error(w, err.Error(), http.StatusBadRequest)
if !token.Valid() {
t.Errorf("got invalid token")
http.Error(w, "Invalid token", http.StatusBadRequest)
// Fetch the ID token and verify it.
rawToken := token.Extra("id_token").(string)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment