๐ฅ 1์ผ์ฐจ - ๋ค์ ๊ฐ๋ฐ ์์
์ง๋ ์ฌ๋ฆ, ์น๊ตฌ ์ธ ๋ช ์ ๊ผฌ์ ์ ์ฌ์ด๋ ํ๋ก์ ํธ๋ฅผ ์์ํ๋ค.
์ฐ๋ง๊น์ง ๋๋ฆ ์ ๋ง๋ค๋ ๊ฑธ ๊ฐ์์๊ธฐ๋ก ์ ์ธํ๋ค.
๊ทธ๋ ๊ฒ ์ฐ์ด๊ฐ ๋ฐ๋ ๊ฐ์ด ํ๋ฌ๊ฐ๊ณ , ์ด๋๋ง 4์์ด ๋์๋ค.
์ด๋ ๊ฒ ์๊ฐ์ ๋ณด๋ผ ์๋ง์ ์์๊ธฐ์
์ด์ ๋ ์ผ๊ธฐ์ ํจ๊ป ๋์ ํ๋กํ ํ์ ๊ฐ๋ฐ์ด ์ผ๋ง๋ ๊ฑธ๋ฆฌ๋ ์ง ๊ธฐ๋กํด๋ณด๊ธฐ๋ก ํ๋ค.
๊ทผ๋ฌด ์๊ฐ์ ์ง์ค ๋ชปํ๊ณ ์์ฌ์ด ๋ง์์ ๋ฐค ๋ฆ๊ฒ ์์๋ฉฐ ๊ฐ์ธ ํ๋ก์ ํธ ์งํํ๋ ๊ฑด ๋น๋ฐ...
๋ด ์ฃผ๋ณ ์ฌ๋๋ค์ ๋ค ๋ด๊ฐ ๋ถ์ง๋ฐํ๋ค๊ณ ์๊ฐํ๋๋ฐ.. ๊ธฐ๋์ ๋ถ์ํ๊ณ ์ถ๋ค..
๐
๋ ์ง
- 4์ 5์ผ
๐ฏ ๋ชฉํ
ํ์๊ฐ์
/๋ก๊ทธ์ธ
๋ฌธ์๋ณด๊ธฐ
-
amplify docs/authentication/switching authentication flows
- ์ธ ๊ฐ์ง ๋ฐฉ์์ด ์๋ค.
- USER_SRP_AUTH: ๋น๋ฐ๋ฒํธ๋ฅผ ์๋ฒ์ ๋ณด๋ด์ง ์์ ์์ . ์ถ์ฒ.
- USER_PASSWORD_AUTH: ๋ณตํธํ๋ ๋น๋ฐ๋ฒํธ๋ฅผ ์๋ฒ๋ก ์ ์ก. Lambda ํจ์๋ฅผ ์ฌ์ฉํด์ผ ํ๋ ๊ฒฝ์ฐ ํ์.
- CUSTOM_AUTH: ํ๊ณ ์ถ์ ๊ฒ ๋ง์ ๊ฒฝ์ฐ ์ ํ ๊ฐ๋ฅ.
- ๊ทธ ์๋ ์์ ์ด ์์ผ๋ ์๋ต.
-
amplify docs/authentication/customize UI components
-
version 1 ๊ธฐ์ค์ผ๋ก ์ค๋ช
๋์ด ์๋ค. ์ ๋ฒ์ ์ ๋ค๋ฅธ docs์์ ํ์ธ ๊ฐ๋ฅ.
-
์กฐ์ํ๋ ค๋ฉด i18n๋ ์ ์์์ผํ๋ค
import { I18n } from 'aws-amplify';
const authScreenLabels = {
en: {
'Sign Up': 'Create new account',
'Sign Up Account': 'Create a new account'
}
};
I18n.setLanguage('en');
I18n.putVocabularies(authScreenLabels);
-
amplify docs/authentication/advanced workflows
- ์.. federate ํ๋ค๋ ๋ด์ฉ ๊ฐ์๋ฐ
- ๋ฌด์จ ์๋ฆฐ์ง ์ ๋ชจ๋ฅด๊ฒ ๋ค.. ํจ์ฐ!!
-
amplify docs/authentication/auth events
import { Hub, Logger } from 'aws-amplify';
const logger = new Logger('My-Logger');
const listener = (data) => {
switch (data.payload.event) {
case 'signIn':
logger.info('user signed in');
break;
case 'signUp':
logger.info('user signed up');
break;
case 'signOut':
logger.info('user signed out');
break;
case 'signIn_failure':
logger.error('user sign in failed');
break;
case 'tokenRefresh':
logger.info('token refresh succeeded');
break;
case 'tokenRefresh_failure':
logger.error('token refresh failed');
break;
case 'configured':
logger.info('the Auth module is configured');
}
}
Hub.listen('auth', listener);
-
amplify docs/authentication/remember a device
- ๊ธฐ๊ธฐ๋ฅผ ๊ธฐ์ตํ๋ ๊ฒ์ Multi-Factor Authentication(MFA) ๋๋ฌธ์ ์ค์ํ๋ค.
- ํ์ง๋ง ๋ ์ ์ธ๊ฑฐ๋ผ ํจ์ฐ!
-
amplify docs/authentication/delete user
- ์ ์ ๊ฐ ์๊ธฐ ๊ณ์ ์ ์ง์ ์ง์ฐ๊ฒ ํ๊ธฐ๋ณด๋ค๋ ์ ์ ๊ณ์ ๊ณผ ๊ด๋ จ๋ ์ ๋ณด๋ค ๋ชจ๋๋ฅผ ์ง์ธ ์ ์๊ฒ ์ฝ๋๋ฅผ ๋ฐ๋ก ์ค๋นํ์.
-
amplify docs/authentication/under the hood
- ์ธ์ฆ ํ์ธ ์ ์ฐจ๋ ๋ ๊ฐ์ง๊ฐ ์๋ค Amazon Cognito User Pool๋ง ์ฐ๋ ๊ฒ๊ณผ ์์
๋ก๊ทธ์ธ์ ํตํด Fereration์ผ๋ก ์ฐ๋ ๋ฐฉ๋ฒ
ํ์๊ฐ์ /๋ก๊ทธ์ธ
๋ฌธ์๋ณด๊ธฐ
-
amplify docs/authentication/switching authentication flows
- ์ธ ๊ฐ์ง ๋ฐฉ์์ด ์๋ค.
- USER_SRP_AUTH: ๋น๋ฐ๋ฒํธ๋ฅผ ์๋ฒ์ ๋ณด๋ด์ง ์์ ์์ . ์ถ์ฒ.
- USER_PASSWORD_AUTH: ๋ณตํธํ๋ ๋น๋ฐ๋ฒํธ๋ฅผ ์๋ฒ๋ก ์ ์ก. Lambda ํจ์๋ฅผ ์ฌ์ฉํด์ผ ํ๋ ๊ฒฝ์ฐ ํ์.
- CUSTOM_AUTH: ํ๊ณ ์ถ์ ๊ฒ ๋ง์ ๊ฒฝ์ฐ ์ ํ ๊ฐ๋ฅ.
- ๊ทธ ์๋ ์์ ์ด ์์ผ๋ ์๋ต.
- ์ธ ๊ฐ์ง ๋ฐฉ์์ด ์๋ค.
-
amplify docs/authentication/customize UI components
-
version 1 ๊ธฐ์ค์ผ๋ก ์ค๋ช ๋์ด ์๋ค. ์ ๋ฒ์ ์ ๋ค๋ฅธ docs์์ ํ์ธ ๊ฐ๋ฅ.
-
์กฐ์ํ๋ ค๋ฉด i18n๋ ์ ์์์ผํ๋คimport { I18n } from 'aws-amplify'; const authScreenLabels = { en: { 'Sign Up': 'Create new account', 'Sign Up Account': 'Create a new account' } }; I18n.setLanguage('en'); I18n.putVocabularies(authScreenLabels);
-
-
amplify docs/authentication/advanced workflows
- ์.. federate ํ๋ค๋ ๋ด์ฉ ๊ฐ์๋ฐ
- ๋ฌด์จ ์๋ฆฐ์ง ์ ๋ชจ๋ฅด๊ฒ ๋ค.. ํจ์ฐ!!
-
amplify docs/authentication/auth events
import { Hub, Logger } from 'aws-amplify'; const logger = new Logger('My-Logger'); const listener = (data) => { switch (data.payload.event) { case 'signIn': logger.info('user signed in'); break; case 'signUp': logger.info('user signed up'); break; case 'signOut': logger.info('user signed out'); break; case 'signIn_failure': logger.error('user sign in failed'); break; case 'tokenRefresh': logger.info('token refresh succeeded'); break; case 'tokenRefresh_failure': logger.error('token refresh failed'); break; case 'configured': logger.info('the Auth module is configured'); } } Hub.listen('auth', listener);
-
amplify docs/authentication/remember a device
- ๊ธฐ๊ธฐ๋ฅผ ๊ธฐ์ตํ๋ ๊ฒ์ Multi-Factor Authentication(MFA) ๋๋ฌธ์ ์ค์ํ๋ค.
- ํ์ง๋ง ๋ ์ ์ธ๊ฑฐ๋ผ ํจ์ฐ!
-
amplify docs/authentication/delete user
- ์ ์ ๊ฐ ์๊ธฐ ๊ณ์ ์ ์ง์ ์ง์ฐ๊ฒ ํ๊ธฐ๋ณด๋ค๋ ์ ์ ๊ณ์ ๊ณผ ๊ด๋ จ๋ ์ ๋ณด๋ค ๋ชจ๋๋ฅผ ์ง์ธ ์ ์๊ฒ ์ฝ๋๋ฅผ ๋ฐ๋ก ์ค๋นํ์.
-
amplify docs/authentication/under the hood
- ์ธ์ฆ ํ์ธ ์ ์ฐจ๋ ๋ ๊ฐ์ง๊ฐ ์๋ค Amazon Cognito User Pool๋ง ์ฐ๋ ๊ฒ๊ณผ ์์ ๋ก๊ทธ์ธ์ ํตํด Fereration์ผ๋ก ์ฐ๋ ๋ฐฉ๋ฒ
๋ค ์ฝ์์ง๋ง ๋ญ๊ฐ ๋ญ์ง ๋ชจ๋ฅด๊ฒ ๋ ์ด ์ํฉ.. ์ผ๋จ ์ฝ๋๋ฅผ ์จ๋ณธ๋ค
์ฝ๋ ์์ฑ ์์
Author And Source
์ด ๋ฌธ์ ์ ๊ดํ์ฌ(๐ฅ 1์ผ์ฐจ - ๋ค์ ๊ฐ๋ฐ ์์), ์ฐ๋ฆฌ๋ ์ด๊ณณ์์ ๋ ๋ง์ ์๋ฃ๋ฅผ ๋ฐ๊ฒฌํ๊ณ ๋งํฌ๋ฅผ ํด๋ฆญํ์ฌ ๋ณด์๋ค https://velog.io/@devgosunman/1์ผ์ฐจ-๋ค์-๊ฐ๋ฐ-์์์ ์ ๊ท์: ์์์ ์ ๋ณด๊ฐ ์์์ URL์ ํฌํจ๋์ด ์์ผ๋ฉฐ ์ ์๊ถ์ ์์์ ์์ ์ ๋๋ค.
์ฐ์ํ ๊ฐ๋ฐ์ ์ฝํ ์ธ ๋ฐ๊ฒฌ์ ์ ๋ (Collection and Share based on the CC Protocol.)
์ข์ ์นํ์ด์ง ์ฆ๊ฒจ์ฐพ๊ธฐ
๊ฐ๋ฐ์ ์ฐ์ ์ฌ์ดํธ ์์ง
๊ฐ๋ฐ์๊ฐ ์์์ผ ํ ํ์ ์ฌ์ดํธ 100์ ์ถ์ฒ ์ฐ๋ฆฌ๋ ๋น์ ์ ์ํด 100๊ฐ์ ์์ฃผ ์ฌ์ฉํ๋ ๊ฐ๋ฐ์ ํ์ต ์ฌ์ดํธ๋ฅผ ์ ๋ฆฌํ์ต๋๋ค