묻고답하기
xe로 이런 로그인 페이지 만드는 방법이 있나요?
2011.01.27 11:08
이러한 로그인 페이지를 XE를 통해 만들 수 있나요?
XE가 안된다면 제로보드 4에서는 가능한가요?
XE자체적인 질문이 아니라 죄송합니다. 가능하면 XE회원관리 시스템과 연동되면 여러모로 이점이 있을거 같습니다.
그리고 무엇보다 제가 아는게 없습니다ㅜㅜ
----------------------------------------------------------------------------------------------------------
원래 질문은 스마트폰 앱에 연동할 HTTP request 페이지를 만드는 것이었습니다..
(http://allseeing-i.com/top_secret/)
출처: http://allseeing-i.com/ASIHTTPRequest/How-to-use
Handling HTTP authentication
If you're connecting to a server that requires authentication, you
might want to take a look at this flowchart that shows how ASIHTTPRequest finds
and applies credentials to requests.
Specifying a username and password to use in the URL
NSURL *url = [NSURL URLWithString:@"http://username:password@allseeing-i.com/top_secret/"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
Setting a username and password to use on the request
NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com/top_secret/"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request
setUsername:@"username"];
[request
setPassword:@"password"];
Storing credentials in the keychain
If you turn
on keychainPersistence, any valid username and password supplied will be
stored in the keychain. Subsequent requests will reuse the username and password
from the keychain, even if you quit and relaunch the application.
NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com/top_secret/"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request
setUseKeychainPersistence:YES];
[request
setUsername:@"username"];
[request
setPassword:@"password"];
If you want to use
the keychain but would rather manage it yourself, you might find the class
methods relating to the keychain in ASIHTTPRequest.h helpful.
Storing credentials in the session
If useSessionPersistence is turned on (it is by default),
ASIHTTPRequest stores credentials in memory and can re-use them for subsequent
requests.
NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com/top_secret/"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request
setUsername:@"username"];
[request
setPassword:@"password"];
[request
setUseSessionPersistence:YES]; //Shouldn't be needed as this is the default
//Should reuse our username and password
request = [ASIHTTPRequest requestWithURL:url];
NTLM authentication
To authenticate with
a Windows server that uses the NTLM scheme, you also need to specify the domain
you are authenticating against.
NSURL *url = [NSURL URLWithString:@"http://my.windows.server/top_secret/"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request
setUsername:@"username"];
[request
setPassword:@"password"];
[request
setDomain:@"my-domain"];
댓글 1
-
DynamicLaser
2011.01.27 20:22
HTTP용 로그인소스는 왠만한 PHP책들에도 자세히 소개되어있습니다.. 지금 제가 가진 책에 자세히는 모르겠지만 꼼꼼히는 나와있네요 -
cycix
2011.01.29 18:17
서버에서 http인증을 지원해주어야 가능한 기술인데 지원 안해줄걸요...
글쓴이 | 제목 | 최종 글 |
---|---|---|
XE | 공지 글 쓰기,삭제 운영방식 변경 공지 [16] | 2019.03.05 by 남기남 |
DooriC | 업로드 용량 100%에서 사라지는 문제 [1] | 2009.03.05 by DooriC |
상억이 | Issue Tracker와 svn 설치및 사용법 좀 가르쳐주세요..ㅜ.ㅡ [1] | 2009.03.05 by 백성찬 |
김튠튠 |
2차 메뉴가 이상합니다.
[2]
![]() | 2009.03.05 by 김튠튠 |
미령전설 |
인기 게시물 출력위젯의 이미지깨짐
![]() | |
새동산 | 게시판 메뉴연결 질문드립니다.... [2] | 2009.03.05 by sm3 |
소리모아 | FaceOff설치를 했습니다. [2] | 2009.03.05 by sm3 |
소리모아 |
레이아웃 조절할려면
[3]
![]() | 2009.03.05 by 선비숨결 |
miso777 |
이미지 리사이징 크기조절은 어디서해요.?
[1]
![]() | 2009.03.05 by 만쓰별(정만) |
하마157 |
메뉴에대해서 ;;
![]() | |
제발 | 게시판이나 메모장 한글쓰면 안보여영..ㅎ | |
리어코리아 | RSS "잘못된 요청입니다"? [5] | 2009.03.05 by 리어코리아 |
onam | 본문 글 정렬 | |
이크샤 | 달력 스킨을 메인 화면에 달고 싶습니다.ㅡㅜ [1] | 2009.03.05 by 러브렛 |
정연국 | 주소 고정하고 나서..글자가커지는데... [1] | 2009.03.05 by 백성찬 |
전용호857 | 레이아웃 본문 및 전체가로크기 조정하는법좀 알려주세요~ [1] | 2009.03.05 by 궁금이2 |
백진호266 | select language 에 대하여 [1] | 2009.03.05 by 궁금이2 |
유즈드 | 홈페이지 메인부터 엑박 뜨네요..쌩초보 살려주세요.. [1] | 2009.03.05 by narawiz |
마래바 |
게시판 본문의 글꼴은 어느 파일을 수정해야 하나요?
[2]
![]() | 2009.03.06 by 마래바 |
las | 댓글창에 알림 기능 삭제에 관한 질문에 대한 질문입니다. [1] | 2009.03.06 by 궁금이2 |
why |
설치 시 자바스크립트 문제에 대한 해결방법이 있을까요?
![]() |