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

Update README.md #222

Merged
merged 1 commit into from
Aug 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,27 @@

Directory service for SNUCSE accounts

## 개발 환경 설정
**필독!** Bacchus ID는 Yarn Berry의 PnP 기능을 사용합니다. 아래 적힌 설명대로 개발 환경을
설정하세요.

```console
$ yarn install

# Install editor SDKs. Some manual configuration is required.
# See https://yarnpkg.com/getting-started/editor-sdks
$ # 편집기 SDK를 설치합니다. 설치 후에 편집기 설정을 수정해야 할 수도 있습니다.
$ # https://yarnpkg.com/getting-started/editor-sdks 를 참고하세요.
$ yarn dlx @yarnpkg/sdks vscode # or vim
```

## JWK 만들기
OIDC 설정에 필요한 JWK를 만들려면, 웹 브라우저 콘솔에서 다음 코드를 실행하세요.

$ yarn build
```js
const key = await crypto.subtle.generateKey(
{ name: 'ECDSA', namedCurve: 'P-256' },
true,
['sign', 'verify'],
);
const jwk = await crypto.subtle.exportKey('jwk', key.privateKey);
console.log(JSON.stringify(jwk));
```