Dúvida sobre Autênticação Externa

  • Iniciador do tópico DeletedUser48550
  • Data de início
Estado
Não está aberto para novas respostas.

DeletedUser48550

Guest
Boas,

Encontrei isto no tribalwars.net, e verifiquei que o .pt também tinha :

http://www.tribos.com.pt/external_auth.php

Pelo que li é preciso ter uma "permissão" do tribos para poder usar, como posso obter essa permissão / acesso?

Tenho uma ferramenta externa que queria controlar o acesso.
 

DeletedUser

Guest
Ou seja, estás através de uma 'ferramenta externa' ao tribos tentar aceder ao mesmo, tens permissão para isso? É autorizado? Explica melhor a situação pode ser que te possa ajudar. Não te esqueças que este fórum é sobre ferramentas independentes logo deves falar mais um pouco da ferramenta. E a mesma deve estar autorizada...
 
Última edição por um moderador:

DeletedUser26456

Guest
Isso dá-te aceso para confirmar credencias de um jogador, por exemplo se eu quiser escrever um comentario no site externo ao tribos com o meu nick de jogo, evitanto que outros jogadores o façam por me.

Um bom exemplo disso é o TwStats que após inserires o teu nick pede que confirmes a password no site oficial tribos.

http://pt.twstats.com/index.php?page=login

Como sei que gostas de programação e se tiveres a tentar usar essa ferramenta para autenticar contas aconselho-te a leres como usares.

@Technician - A resposta da autenticação é apenas verdade ou falso, não existe troca de dados extra entre o tribos e o site externo, não vejo razão para que seja necessário aprovação de ferramentas que usem este método aqui, além disso esta opção está disponivel em todos os servidores innogames (não só no tribos) e é usada basicamente desde o inicio do jogo sem qualquer problema.

Instructions for external auth:

1. Redirection to external auth from external site

A visitor to the external site requests a page or action that requires authentication (for example, writing a comment). The external site has no direct access to the internal system of Tribalwars. However, the external site can add the comment but mark is as ‘not yet authorised’ in the database. Afterwards, the user is redirected to the external authentication. This is located at http://www.tribalwars.net/external_auth.php. The page expects the following parameters via GET:

SID: unique Id, generated by the player’s page. This could be the ID of his/her comment.

Client – the client as supplied and entered in to the external auth database.

2. The authentication of players

At this point the visitor is no longer on the player project’s site, but on the site for Tribalwars external authentication. The visitor must now login using their normal username and password from the game. If the authentication is successful, the Tribalwars system will make a HTTP request to the client’s validation URL to provide confirmation to the player’s website that the visitor has successfully authenticated. As the validation URL is only used internally by the Tribalwars system it is recommended that the URL is not made public.
When Tribalwars calls the validation URL the following parameters will be passed via GET:

*sid: The unique ID that was passed to external_auth.php via the original redirect, for example the ID of the comment.

*username: The username that the visitor has logged in with.

*hash: A MD5 hash of a string consisting of the variables “sid”, “username” and “secret” together. e.g. $hash = md5($sid . $username . $secret_password);

The validation code on the player project should check the hash variable to make sure that the request is legitimate. As only the website owner will know the secret password the hash cannot be faked if someone found out the validation URL. If the authentication was successful and the data submitted is correct than the comment or resource can be marked as authenticated.

3. Redirecting the player back to the player site

The validation URL for a project should not display any content except a plain text URL. This is the URL that visitors should be forwarded to once they have been authenticated. For example the URL to the comment that the visitor has just posted could be set as the content that the validation URL returns.

At the end of the process the player is returned back to the external website.

In short, the steps are:

1. Visitor redirected to external_auth.php with parameters sid and client via
GET.

2. Visitor logs in using usual username and password.

3. Tribalwars makes request in background to validation URL with parameters username, sid, hash via GET, stores response.

4. Tribalwars redirects visitor to the response of the validation GET.


Retirado do post http://forum.tribalwars.net/showthr...wars-Claimer&p=2937832&viewfull=1#post2937832
 

DeletedUser48550

Guest
Primeiro, ainda não fiz nada a respeito da autenticação externa, li o processo e fiquei com a ideia que era preciso ser-me dado um acesso para conseguir usar, e foi isso que perguntei. Com quem é que tenho de falar para ter esse acesso / para ter a ferramenta autorizada?
 
Última edição por um moderador:

DeletedUser

Guest
@garrafa1, agradeço a tua mensagem. Nós moderadores também estamos sempre a aprender. De facto, só com a informação que o @haylo eu não lhe conseguia responder à mensagem, pelo menos não diretamente, isso é certo.

Não tinha era mesmo a noção em relação às ferramentas.


Bom trabalho, :p

Cumprimentos,
Technician
 
Última edição por um moderador:

DeletedUser

Guest
Haylo, acho que o melhor e mais rápido é mesmo fazeres uma solicitação de suporte visto que ainda permanecem as dúvidas.
 
Estado
Não está aberto para novas respostas.
Topo