Adding resource server to a AWS Cognito user pool gives error - amazon-cognito

I have a user pool which is fully working and want to add a resource server.
Whatever identifier or name I try I always get "The identity provider name or identifier is missing."
Does anyone know what can be wrong?

We ran into something a similar error like this. It seems that if ANY scope description is empty or whitespace it throws that error. If you give those scopes a description it should be OK.

Looks like this issue still exists.
Tried adding a resource server but it throws an error saying "The identity provider name or identifier is missing." However after filling out all the details in the text boxes provided the error was gone and the resource created successfully.

Related

Google Wallet API Permission Denied

I followed this guide for creating a Google Wallet pass. After even running the Github Code here I still only get an '403 Forbidden' error:
error on pastebin: https://pastebin.com/hFmwR3qt
Thanks in advance for your help!
Edit 1:
I should probably have mentioned that I have got an issuer account created on the Google Pay Business console.
I ran into the same issue. This answer helped me:
Google Wallet API Codelabs example permission denied
Just to add some points of clarity:
When you get your Issuer Id and Pass Class Id, Google is prepending the Issuer Id to the Pass Class Id. They shouldn't be doing this, and you need to remove it.
You should take only the part of the "Pass Class Id" that comes after the dot.
Next, notice the "Owner".
That is the email address you typed in when you clicked "Create" for a Temporary issuer. That email address must be the "client_email" value found in your key.json file (Line 6 in the file).

OAuth error when using Okta Authentication in ionic app

I am getting following error when integrating okta authentication in my application.
OAuthError
{
name: “OAuthError”,
message: “The ‘{0}’ system claim could not be evaluated.”,
errorCode: “server_error”,
errorSummary: “The ‘{0}’ system claim could not be evaluated.”}
errorCode:"server_error"
errorSummary:"The ‘{0}’ system claim could not be evaluated."
message:"The ‘{0}’ system claim could not be evaluated."
name:“OAuthError”
}
Please help me.
+1 with Assil
Error Code is
"The 'sub' system claim could not be evaluated."
By Default the Usernames, even the Users are Assigned to Applications is Blank. And we have to add them manually.
I am checking if that can be done Programatically to avoid manual interventions, will share here.
Add Username
Edit Username
I received the same error using the OpenID Connect sign on method for a custom application. In my case, the fix was to make sure the username attribute was properly set on the assigned application for the user in question.
The message was
"The 'sub' system claim could not be evaluated."
The resolution was as Cayce said. The application if assigned to a user, then that username must appear in the username attribute of the registered application.

Auth0 "tenant must have a name"

I'm trying to create a new account and I can login but I get to the page that asks my account name, region, company name and role.
I've input in all fields and accepted the terms and conditions but run into an error that says tenant must have a name. I'm not sure what tenant refers to and how I should fill out the form to proceed.
This seems to be a problem on Auth0's side. I'm experiencing it too. I've opened a bug report on their forum here: https://ask.auth0.com/t/signup-flow-causes-tenant-must-have-a-name/2495.

Amazon Product Advertising API Scratchpad not working

So I've just been fighting shadows in the Amazon labyrinth. Went to use the Amazon Product Advertising API Scratchpad to test out my Access Key Id and Secret Access Key, as well as entering the Associate Tag which isn't used in critically in the API query, just important if you want credit for the query later.
I kept getting the following error, no matter how many times I went and created a new set of keys or verified them in the download section of the AWS Management Console for the root user - IAM users don't work in the API seemingly.
Error! SignatureDoesNotMatch
HTTP Status 403: Forbidden
The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
Rinse and repeat. Many, many times. Complete and utter frustration....
Lo and behold, I come across this oasis of sanity - Signed Request Helper - which provides a successful result to my query with the same keys as used above.
So, can anyone else confirm problems with the Scratchpad that didn't bear out in other applications, like the Signed Request Helper or their own code? At this point I'm betting that there is a bug in the Amazon Scratchpad. I guess I will go roll something to test in Python but the apparent craziness of the URL construction makes me wary. Seemingly it's soo hard even the Amazon guys got it wrong...
Yes, this reminds me of the dark days I had trying to get the signature just right.
I too had similar troubles when I started playing with the API. Ultimately, I ended up using the master credentials. This link will take you to the right spot after you login. Open the "Access Keys" tab. This is the area I made a new master access key for signing requests. When you get into the users/groups/roles/policies, I had trouble.
But I have a key there and I can use the scratchpad no problem. I have an application running that uses the key, but I just went and tried a query to confirm it's all still good.
Note that in the scratchpad the Associate Tag is irrelevant like you said. To get the error you have, it's for sure the SECRET ACCESS KEY that is incorrect. If you entered the ACCESS KEY ID field incorrectly, you would get this error:
Error! InvalidClientTokenId HTTP Status 403: Forbidden The AWS Access
Key Id you provided does not exist in our records.
For others who may come across this, let me impart my findings. Importantly, I was able to verify the keys with the Signed Request Helper but wasn't able to get the query to work in the Scratchpad. The error received clearly informs me that it is the signature that is wrong:
Error! SignatureDoesNotMatch HTTP Status 403: Forbidden The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
So one ponders, as instructed, on the Secret Key and the signing method. Since one is using the scratchpad, it must be the key. But the same key works in the signed request helper! What to do.
It turns out that the error was in one of the supplied parameters. If the scratchpad produces a signed url with a faulty parameter, it will result in that error. There is some validation going on, but you can still wind up with a bad parameter. So, if you get the above error, try a simple query with your key to prove that your secret access key is valid, then start investigating your supplied parameter values.

Login routine for password protected website

You are writing the login routine for a password protected website. Give examples of specific user input errors that you might want to catch, and how you might deal with them.
This is an interview question
I answered this as follows
We should add both client side errors and server side errors.
Client side error:
Check if user put nothing in username field. We can show message using javascript that “username not entered”
Server side error:
We can check if username does not exist in database and can throw error message.
We can check if password does not match in database for entered username.
Can anyone suggest. Are these the only error we can catch?
I'd consider syntactically invalid usernames (empty; too short or too long; containing invalid characters like possibly spaces, quote marks or shell/SQL metacharacters; structurally invalid, i.e., starting with dot or number), and syntactically invalid passwords (too short or even empty, too "simple", or equal to username). All these cases you can validate client side with JS, recycling the same code for the "Creating new user, choose user and password" view.
Server side, you might have backend connection error (i.e. not being able to tell whether the user does exist -- not exactly an user error, but we might want to manage it here nonetheless), user not found, password mismatch, and possibly "login disabled" (this is quite common on auto-create-user website: the login exists but must be validated by clicking on a link sent through email. Then again, one might want to place these "not-yet-users" in a storage apart to avoid clogging/churning on the real user database). Of course you might also want to add a special disable state and message ("Your membership fee is overdue"). Other additional "errors" and "warnings" may be added here, e.g. "You're not logging from your usual IP block(s) [, would you mind answering this security question?]" or "password expired, choose another password".
IMO, the main issue (assuming SQL as the database for the users and password) is SQL Injection, that for example adds a specific user as an admin access.
Dealing with it can be done using libraries in the server side to handle all user input — rather then trying to do it on your own.