Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signed call not working #32

Closed
superSaen36 opened this issue Apr 5, 2021 · 1 comment
Closed

Signed call not working #32

superSaen36 opened this issue Apr 5, 2021 · 1 comment

Comments

@superSaen36
Copy link

Hi Duo team,

I've been trying to create admins using your Signed call function but I've been running into some errors. I pulled your code and pass in my information like so par := url.Values{} par.Set("name", "TestName") par.Set("email", "[email protected]") resp, _, err := duo.SignedCall("POST", "/admin/v1/admins", par)
problem is I get a 40103 error

    "code": 40103,
    "message": "Invalid signature in request credentials",
    "stat": "FAIL"
}```

I checked the sign function that creates the hmac signature 
and the conanicalized information is this 

```Mon, 05 Apr 2021 18:21:16 +0000
POST
api-xxxxxxxx.duosecurity.com
/admin/v1/admins
email=test%40test.com&name=TestName```
it  seems write but that hmac signature I get generated is wrong I've even tested on an online hmac generator and they don't match up. I haven't modified your code so I'm not sure where the error is coming from
@james-d-elliott
Copy link

@seanbrhn3 what was the cause of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants