7,675 questions
1
vote
0
answers
26
views
Power pages portal auth token validation failed with public key
I created a self-signed certificate and added it in power platform admin center using the following commands:
$certificateName = "powerpages.yourdomain.com"
$certPassword = ConvertTo-...
-3
votes
1
answer
77
views
How to get token usage (prompt/completion tokens) from GenerateContentResponse using google-genai Java SDK v1.23.0? - springboot, github codespace
I am using the com.google.genai:google-genai:1.23.0 Java SDK in a Spring Boot 3 project to call the Gemini API (gemini-1.5-flash).
I can successfully generate content and get the answer text like this:...
0
votes
0
answers
55
views
Laravel session lifetime on recursive ajax
I'm using laravel 8 with SESSION_DRIVER=file
I have code that run like below, and I have a problem why the recursive not extending the expired time of session?
Each process take 30sec, but after ...
0
votes
1
answer
64
views
Assigning unique tokens to starting pods [closed]
I'm trying to find an (elegant) solution to the following problem: I have a Deployment that I want to be able to scale from 2 - 4 pods.
I have a pool of 4 unique tokens to access a resource, external ...
2
votes
0
answers
57
views
How to download file contents from private BitBucket repository using API token
So far I got this
def _parse_bitbucket_url(value: str) -> Dict[str, str]:
parsed_url = urlparse(value)
if not parsed_url.scheme or "bitbucket.org" not in parsed_url.netloc:
...
0
votes
0
answers
67
views
What is the correct way to get the remaining tokens for a chat session in FoundationModels?
I currently calculate the remaining tokens like this:
var conversationHistorySize: Int {
conversationHistory.components(separatedBy: .whitespacesAndNewlines).count
}
private let maxTokens = 4096
...
0
votes
0
answers
49
views
Setting up spotipy in pythonanywhere
I'm making a program which I want to run continuously (hence the pythonanywhere):
def setup():
spOauth = SpotifyOAuth(client_id=CLIENTID,
client_secret=CLIENTSECRET,
...
0
votes
0
answers
50
views
Vault OIDC token TTL doesn't follow Keycloak session duration
I'm integrating Vault with Keycloak using OIDC auth method. The login flow works correctly, and Keycloak sessions are created as expected. However, Vault issues tokens with its own TTL and does not ...
1
vote
1
answer
74
views
Msal URI wont authenticate user
I am having an issue with my MSAL Setup.
I am using IONIC, Angular and MSAL for my frontend.
My application works on web but when i publish my site to an apk my application does not redirect the user ...
0
votes
1
answer
224
views
Token V1 and V2 Postman inconsistencies
Doing tests before entering production, with Postman I have found some inconsistencies in the response of the tokens based on the request I am making.
If we have "requestedAccessTokenVersion"...
0
votes
0
answers
60
views
OpenIddict asociate refresh tokens with session
I’m migrating from IdentityServer4 to OpenIddict. Previously, I had functionality that associated refresh tokens with sign-in sessions. This was done so that refresh tokens could be revoked if the ...
0
votes
1
answer
119
views
My deployed MERN web app work fine on PC but not on mobile
My web app works fine on the PC but when I try to login on mobile I get error: unauthorized access, i.e, the cookies are not being set. I deployed my backend on render and frontend on vercel.
Here’s ...
0
votes
0
answers
32
views
Unable to handle the token with NextJs login
I am having a problem with my login activity for NextJS ( App Router ) with Firebase authentication setup.
I have created two modes. If App_mode is dev, the routes should be open, else only the ...
4
votes
2
answers
178
views
Start Notepad.exe or Calc.exe with CreateRestrictedToken
I'd like to start a GUI application like notepad.exe or calc.exe with a restricted token that only has the permissions of some groups (with the CreateRestrictedToken() API)
However, I get this error ...
0
votes
0
answers
47
views
How do I send a response back to MS Teams from my bot backend which is hosted in azure App Services
I'm encountering a 401 Unauthorized error when attempting to send a response back to a Microsoft Teams chat from my bot(i haven't used bot framework sdk, simple bot in python).
In my setup, I’m ...
1
vote
1
answer
88
views
Problem in logging out in Postman while sending POST Request through API
I am using POSTMAN to send API Requests.I have been logged in through API and got a token. When I try to log out using that particular token it display output as "not logged in"
This is the ...
0
votes
0
answers
83
views
Re-establishing a broken long-lived connection with iam tokens
my company has historically used Lettuce without authentication. We relied on AWS security groups. But now our security team is asking us to authenticate via iam.
Each of our application services that ...
0
votes
0
answers
32
views
Okta Custom Claim as permissions
Is it possible to use permissions as custom claim in okta id_token? If not then how can I get permissions claim in my okta token?
I'm looking to get key as permissions in token claims and value should ...
0
votes
0
answers
30
views
How to fetch automatic refreshed token from XHR?
Some websites update JWT regulary to prevent scraping: in browser JS sends XHR to server to get fresh token- see the Token XHR on the picture below. Eg.
curl "https://www.nemlig.com/webapi/Token&...
1
vote
1
answer
154
views
Keycloak: “Account is not fully set up” even if no required user actions are defined
I'm using Keycloak and tried to get a token via the password grant using this curl command:
curl -X POST http://localhost:8180/realms/myrealm/protocol/openid-connect/token \
-H "Content-Type: ...
0
votes
1
answer
207
views
How to get mint address of tokens in wallet with solana/web3.js v2
I am able to get the tokens in my wallet but then am not able to derive the mint address from the received data. I want to get the mint address of all tokens in my wallet to then use that with some ...
0
votes
0
answers
61
views
Is sonar.projectKey security sensitive?
I'm responsible for reviewing some code delivered privately that may get published openly (e.g. in a public Github repository). We've seen deliveries in the past that included unambiguously sensitive ...
1
vote
1
answer
61
views
Google Matrix API not authorized on this project with Token access key
I'm trying to use the Google Matrix Api on a web project using a token to authenticate.
The testing is done in console to minimize potential errors like bellow :
curl "https://maps.googleapis.com/...
0
votes
1
answer
85
views
How to Authorize Blazor allows the user to view the page
It's like I'm working on a project where I have divided the API into separate parts and the Blazor server App into separate parts. It's like I get the API + my service to create a Token for the user ...
0
votes
0
answers
17
views
How to Determine Twitter API Token Lifetime and Rate Limits for Crawling with a Dummy Account?
How can I determine the token lifetime used for crawling Twitter with a dummy account, and what are the limitations per token?
What are the request rate limits per token for free and paid tiers?
How ...