Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there the explanation about the usage of "Access token" in manual? #1091

Open
yoshihingis opened this issue Jul 13, 2020 · 1 comment
Open

Comments

@yoshihingis
Copy link

Is there the explanation about the usage of "Access token" in manual?

I want to know the usage of access token of the knowledge.
But I could not find the explanation about usage of access token in manual.

I'd really appreciate it if you teach me the usage about access token of the knowledge.

Regards,

@nichesuch
Copy link

私も気になって調べました。

#760 (comment)

89a9955

    // 認証
      // Httpヘッダー「PRIVATE-TOKEN」か、リクエストパラメータ「private_token」の値で認証する(GitLab準拠)
      String token = req.getHeader("PRIVATE-TOKEN");
      if (StringUtils.isEmpty(token)) {
          token = req.getParameter("private_token");
      }
      if (StringUtils.isEmpty(token)) {
          // Tokenが指定されていない
          res.sendError(HttpStatus.SC_403_FORBIDDEN);
          return;
      }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants