DSolve [ y'[x]  ==  Tan[x] * (y[x]^2  -  1),  
      y[x],  x ]

DSolve [ {  y'[x]  ==  
          Tan[x] * (y[x]^2  -  1),  y[0] == 0 },  y[x],  
      x ]