Skip to content

Commit

Permalink
verification of id_token fix
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul-Az <aazeez@progress.com>
  • Loading branch information
iamazzeez committed Aug 9, 2021
1 parent decd014 commit 998f971
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion components/authn-service/server/authenticators.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net/url"
"strings"

"github.com/chef/automate/api/interservice/id_token"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/pkg/errors"
"go.uber.org/zap"
Expand All @@ -14,11 +15,11 @@ import (
"google.golang.org/grpc/status"

api "github.com/chef/automate/api/interservice/authn"
"github.com/chef/automate/api/interservice/id_token"
"github.com/chef/automate/components/authn-service/authenticator"
"github.com/chef/automate/components/authn-service/authenticator/mock"
"github.com/chef/automate/components/authn-service/authenticator/oidc"
"github.com/chef/automate/components/authn-service/authenticator/tokens"

util "github.com/chef/automate/lib/oidc"
"github.com/chef/automate/lib/tls/certs"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CREATE TABLE sessions (
CREATE INDEX sessions_expiry_idx ON sessions (expiry);

CREATE TABLE blacklisted_id_tokens (
id_token TEXT
token TEXT
);
CREATE INDEX blacklist_session_idx ON blacklisted_id_tokens (id_token);
CREATE INDEX blacklist_session_idx ON blacklisted_id_tokens (token);

2 changes: 0 additions & 2 deletions components/session-service/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ func (s *Server) logoutHandler(w http.ResponseWriter, r *http.Request) {
if err != nil {
panic(err)
}

fmt.Println(idToken, "Abd::idToken1122333")
w.WriteHeader(http.StatusOK)
}

Expand Down

0 comments on commit 998f971

Please sign in to comment.