Hi team! :wave: I'm having authentication issues ...
# infisical-help
m
Hi team! πŸ‘‹ I'm having authentication issues with both Service Tokens AND Machine Identity in the .NET SDK (
Infisical.Sdk
). Issue 1: Service Token Authentication - .NET 8 - Service Token format:
<http://st.dev|st.dev>.xxx...
(valid format, starts with st.dev) - Token has Read permission for Development environment - Project ID verified - Result: Authentication fails ❌ Code:
Copy code
csharp
var options = new ClientSettings
{
    Auth = new AuthenticationOptions
    {
        UniversalAuth = new UniversalAuthMethod
        {
            ClientId = serviceToken,
            ClientSecret = serviceToken
        }
    }
};
Issue 2: Machine Identity (Universal Auth) - Created Machine Identity with Viewer role (Permanent) - Added to project successfully - ClientId and ClientSecret generated and verified in dashboard - Error: "Machine Identity doesn't have permission to access environment" or similar auth failure Code:
Copy code
csharp
var options = new ClientSettings
{
    Auth = new AuthenticationOptions
    {
        UniversalAuth = new UniversalAuthMethod
        {
            ClientId = "xxx...xxx", // Valid ClientId from dashboard
            ClientSecret = "xxx...xxx" // Valid ClientSecret from dashboard
        }
    }
};

var secrets = await client.ListSecretsAsync(new ListSecretsOptions
{
    ProjectId = projectId,
    Environment = "dev",
    SecretPath = "/"
});
What I've Verified: βœ… Machine Identity is added to project with Viewer role βœ… Role shows "Permanent" duration βœ… ClientId and ClientSecret copied correctly from Universal Auth tab βœ… Project ID is correct βœ… Service Token is valid and has Read permission for dev environment Questions: 1. What's the correct .NET SDK authentication pattern for Service Tokens? 2. Why would Machine Identity fail despite correct permissions in dashboard? 3. Do I need to explicitly grant environment-level access to Machine Identity somewhere? 4. Is there a working .NET SDK example with either authentication method? Happy to provide more debugging info via DM or private channel if needed! Thanks! πŸ™
b
Hey @Muhammed, Are you using the Europe or US region?
m
I am using Europe
b
Confirm if you’re setting up the eu host:
Copy code
var settings = new InfisicalSdkSettingsBuilder()
        .WithHostUri("<http://localhost:8080>") // Optional. Will default to <https://app.infisical.com>
In your case it should be: https://eu.infisical.com
m
yes now all is done but i have another problem for pro app I'm experiencing a critical payment authorization issue preventing me from upgrading to Pro. **ERROR MESSAGE:**"We cannot authorize your payment method. Please choose a different payment method and try again." SITUATION:- Instance: EU (https://eu.infisical.com) - Account: muhammed@techliberty.co - Organization: TechLiberty - Location: Turkey πŸ‡ΉπŸ‡· **PAYMENT ATTEMPTS (ALL FAILED):**1. βœ… Visa Credit Card (verified, international enabled) - Balance: Sufficient - Used successfully: AWS, GitHub, DigitalOcean, Stripe merchants - Result: ❌ "Cannot authorize" 2. βœ… Mastercard Credit Card (verified, international enabled) - 3D Secure: Enabled - Used successfully: Google Cloud, Azure (before boycott) - Result: ❌ "Cannot authorize" 3. βœ… Link Payment - Result: ❌ Failed **ROOT CAUSE (Suspected):**This appears to be a Stripe country restriction for Turkey, not a card issue. Our cards work perfectly with other international SaaS providers. **URGENT REQUEST:**We need Pro features for production deployment ASAP. Can you provide alternative payment methods?
b
@Maidul Islam ☝️
m
Hi, i need another answer, I want to upgrade my infisical subs but when i want to change my plans i had see this information title Infisical Cloud Starter(Γ—2) why ? x2 i have a just 1 account and use by me ? Can u explane me ?