Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #187
Closed
Open
Issue created May 30, 2018 by Administrator@rootContributor

How to set the use of "credentials" with csharp or csharp-dotnet2 client?

Created by: JFCote

Description

This is not a bug, it is only a question.

I'm a common user of different typescript clients like jQuery and Fetch. In those clients, when I create the client, I can specify via the options that I want to use the credentials in the session. A typical use case is that there is a function called "login" in the api and after that, if in the session we have the credentials, keep them and you have now access to other calls.

For example, in typescript-jquery:

this.brandApi = new BrandApi(path, null, {
			xhrFields: {"withCredentials": true}
		});

Or in typescript-fetch, I pass this in the options:

{credentials: "include"}

How are we supposed to do that in the csharp and csharp-dotnet2 client generators?

I'm tagging c# technical committee. This could be added in a FAQ somewhere too :) @mandrean (2017/08) @jimschubert (2017/09)

Assignee
Assign to
Time tracking