Graylog 2.3.2 API tokens :No configuration available for access tokens - graylog2

I am not sure how to configure graylog 2.3.2 to get an API token for my admin user?

You generate a token with the API - like written in the documentation:
http://docs.graylog.org/en/3.0/pages/configuration/rest_api.html#creating-and-using-access-token

Related

How do I verify the token I receive from logging into my Angular App (Azure AD / MSAL) when making an API HTTP request to NodeJS?

Currently where I am is this. I followed the Microsoft documentation to where a user can login to Angular front end via Azure Active Directory.
I followed this tutorial: https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-angular-auth-code
This then populate my local storage with various details including an idtoken and accesstoken.
My hope is to then send a token to my backend (NodeJS), and have it validate the token before executing the API and then sending back the result.
Previously I was able to do this with middleware and leveraging Cognito but I am being forced to switch to Azure AD for Auth.
Any help would be greatly appreciated as I am currently at a loss. Thank you.
Check this: https://www.npmjs.com/package/validate-azure-ad-token
I think this library made just for you
If you are using a #azure/msal-react or #azure/msal-browser on the frontend site and you just want to verify your Microsoft access token on your node server.

How to make request to endpoints exposed with AWS using iAM authentication?

I'm new to AWS and I need help.
I have some endpoints (GET - POST /endpoint) that are exposed by AWS and my client documented for me.
To call any endpoint I need to authenticate with IAM (my client gave me the secret_key and the access_key).
I guess with those 2 keys I need to obtain an access token that I need to pass as header authorization to the request.
I'm using node.js. How can I obtain the access token so that I can make the request (I guess with some library like axios)?
Thanks for all the help
You could potentially use the AnomalyInnovations/sigV4Client and the related blog post:
A standalone client for signing API Gateway requests for Signature Version 4.

Docusign Node.js api connection with api keys

Is there any way to connect DocuSign with api keys only? I am using docusign-esign sdk. I am creating envelope at backend and send email to user to sign that.
Currently, I use to connect it with header X-DocuSign-Authentication and it works perfectly in dev env.
How can I connect that in Production env?
You are using legacy auth which is not as secure as using OAuth.
We highly recommend that you don't use legacy auth, and in fact we would very soon require it and not allow you to create an integration using legacy authentication (X-DocuSign-Authentication header).
You can use JWT such that the user doesn't need to authenticate each time you use your app. You would only need one time consent and you'll never have to login again.
Please don't use X-DocuSign-Authentication to ensure your app is as secure as possible!

AKS Get Access Profile In Java

I need to programmatically get the access profile for an AKS cluster from Java. I see that the REST API to do this is documented here. Is this API exposed in the azure java sdk? If so where? If not, I would have to use an http client and add the Bearer token in the header. But, how could I use the azure sdk to programmatically get a Bearer token for a particular client id and client secret?
Not sure, maybe you can get AKS cluster access profile use the Java SDK userKubeConfigContent().
And you also can get the access token in the Java Code. See get the access token. And the code will like this:
// Request access token from AAD
AuthenticationResult result = getAccessTokenFromUserCredentials(
username, password);
// Get user info from Microsoft Graph
String userInfo = getUserInfoFromGraph(result.getAccessToken());
Hope this will help you.

Validate LTPA token in nodejs

IS there any way to validate LTPA token previously generated from IBM Tivoli federated Websphere Application Server in my nodejs application.
I have checked "ldapjs", but I could not find something to validate LTPA token.
I have written a small library for this purpose: https://www.npmjs.com/package/ltpa
Once you've extracted your server key you can use the library to validate, and generate LtpaTokens.
There is an Java API related with WSLogin - which allows to validate LTPA. (Technically a re-login here)
But I dont think you can use this with Nodejs.
But my preferred way is to use the BASIC authentication using the URL post from your app.
This requires a provider (Websphere) to expose a URL for you.

Resources