A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/segmentio/aws-okta/commit/98c40a4dfeee54596aa5f5130364f88b8ebdeb90 below:

add dual duo sid API support (#294) · segmentio/aws-okta@98c40a4 · GitHub

This repository was archived by the owner on May 18, 2021. It is now read-only.

File tree Expand file treeCollapse file tree 1 file changed

+8

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+8

-1

lines changed Original file line number Diff line number Diff line change

@@ -463,7 +463,14 @@ func (d *DuoClient) DoStatus(txid, sid string) (auth string, status StatusResp,

463 463 464 464

if status.Response.Result == "SUCCESS" {

465 465

if status.Response.ResultURL != "" {

466 -

auth, err = d.DoRedirect(status.Response.ResultURL, status.Response.SessionID)

466 +

// DUO appears to waver on whether a session ID should come back

467 +

// in the response here, if it does, it should be used in the redirect

468 +

// before calling the Okta callback.

469 +

if status.Response.SessionID != "" {

470 +

sid = status.Response.SessionID

471 +

}

472 +

log.Debugf("Redirecting: %s; sid: %s", status.Response.ResultURL, sid)

473 +

auth, err = d.DoRedirect(status.Response.ResultURL, sid)

467 474

} else {

468 475

auth = status.Response.Cookie

469 476

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4